fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/printing-binder.rs:10:18 3 | 4LL | fn whatever() -> impl for<'a> Trait<'a> + for<'b> Trait<'b> {} 5 | ------------------------------------------ the found opaque type 6... 7LL | let x: u32 = whatever(); 8 | --- ^^^^^^^^^^ expected `u32`, found opaque type 9 | | 10 | expected due to this 11 | 12 = note: expected type `u32` 13 found opaque type `impl for<'a> Trait<'a> + for<'b> Trait<'b>` 14 15error[E0308]: mismatched types 16 --> $DIR/printing-binder.rs:12:19 17 | 18LL | fn whatever2() -> impl for<'c> Fn(&'c ()) { 19 | ----------------------- the found opaque type 20... 21LL | let x2: u32 = whatever2(); 22 | --- ^^^^^^^^^^^ expected `u32`, found opaque type 23 | | 24 | expected due to this 25 | 26 = note: expected type `u32` 27 found opaque type `impl for<'c> Fn(&'c ())` 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0308`.