Intermediate Rust
Q55 / 100

What is the Deref coercion?

Correct! Well done.

Incorrect.

The correct answer is B) Implicit conversion when passing a &T where &U is expected, if T implements Deref<Target=U>

B

Correct Answer

Implicit conversion when passing a &T where &U is expected, if T implements Deref<Target=U>

Explanation

Box<String> coerces to &String which coerces to &str. String::from("hello") can be passed as &str. This chain is performed automatically.

Progress
55/100