Intermediate Rust
Q57 / 100

What is a type alias (type) in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) An alternate name for an existing type with no additional safety guarantees: type Result<T> = Result<T, io::Error>

B

Correct Answer

An alternate name for an existing type with no additional safety guarantees: type Result<T> = Result<T, io::Error>

Explanation

type Thunk = Box<dyn Fn() + Send + 'static>; is a type alias. Unlike struct Newtype(T), a type alias IS the same type.

Progress
57/100