summaryrefslogtreecommitdiffstats
path: root/tests/ui/bounds-lifetime.rs
blob: 31aa4011b91143ba750f1d1aa57bd8ee44878350 (plain)
1
2
3
4
5
6
7
type A = for<'b, 'a: 'b> fn(); //~ ERROR lifetime bounds cannot be used in this context
type B = for<'b, 'a: 'b,> fn(); //~ ERROR lifetime bounds cannot be used in this context
type C = for<'b, 'a: 'b +> fn(); //~ ERROR lifetime bounds cannot be used in this context
type D = for<'a, T> fn(); //~ ERROR only lifetime parameters can be used in this context
type E = dyn for<T> Fn(); //~ ERROR only lifetime parameters can be used in this context

fn main() {}