fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/opaque-in-impl-is-opaque.rs:17:19 3 | 4LL | fn bar(&self) -> impl Display { 5 | ------------ the found opaque type 6... 7LL | let x: &str = ().bar(); 8 | ---- ^^^^^^^^ expected `&str`, found opaque type 9 | | 10 | expected due to this 11 | 12 = note: expected reference `&str` 13 found opaque type `impl std::fmt::Display` 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0308`.