We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3890619 commit 2c66e03Copy full SHA for 2c66e03
tests/ui/bounds-lifetime.rs renamed to tests/ui/higher-ranked/higher-ranked-invalid-bounds.rs
@@ -1,3 +1,5 @@
1
+//! Tests invalid lifetime bounds and generic parameters in higher-ranked types.
2
+
3
type A = for<'b, 'a: 'b> fn(); //~ ERROR bounds cannot be used in this context
4
type B = for<'b, 'a: 'b,> fn(); //~ ERROR bounds cannot be used in this context
5
type C = for<'b, 'a: 'b +> fn(); //~ ERROR bounds cannot be used in this context
0 commit comments