]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/bounds-lifetime.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / bounds-lifetime.rs
index 8abfe3e4b7623bde133aa65822600122fef909ff..31aa4011b91143ba750f1d1aa57bd8ee44878350 100644 (file)
@@ -2,6 +2,6 @@
 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 = for<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() {}