fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: implementation of `Trait` is not general enough 2 --> $DIR/closure-malformed-projection-input-issue-102800.rs:18:12 3 | 4LL | let _: for<'a> fn(<&'a () as Trait>::Ty) = |_| {}; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Trait` is not general enough 6 | 7 = note: `&'0 ()` must implement `Trait`, for any lifetime `'0`... 8 = note: ...but `Trait` is actually implemented for the type `&'static ()` 9 10error: implementation of `Trait` is not general enough 11 --> $DIR/closure-malformed-projection-input-issue-102800.rs:18:12 12 | 13LL | let _: for<'a> fn(<&'a () as Trait>::Ty) = |_| {}; 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Trait` is not general enough 15 | 16 = note: `&'0 ()` must implement `Trait`, for any lifetime `'0`... 17 = note: ...but `Trait` is actually implemented for the type `&'static ()` 18 19error: aborting due to 2 previous errors 20