]> git.lizzy.rs Git - rust.git/blob - src/test/ui/bounds-lifetime.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / bounds-lifetime.rs
1 type A = for<'b, 'a: 'b> fn(); //~ ERROR lifetime bounds cannot be used in this context
2 type B = for<'b, 'a: 'b,> fn(); //~ ERROR lifetime bounds cannot be used in this context
3 type C = for<'b, 'a: 'b +> fn(); //~ ERROR lifetime bounds cannot be used in this context
4 type D = for<'a, T> fn(); //~ ERROR only lifetime parameters can be used in this context
5 type E = dyn for<T> Fn(); //~ ERROR only lifetime parameters can be used in this context
6
7 fn main() {}