diff options
Diffstat (limited to 'tests/ui/parser/recover-assoc-lifetime-constraint.stderr')
-rw-r--r-- | tests/ui/parser/recover-assoc-lifetime-constraint.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/recover-assoc-lifetime-constraint.stderr b/tests/ui/parser/recover-assoc-lifetime-constraint.stderr new file mode 100644 index 000000000..79437533d --- /dev/null +++ b/tests/ui/parser/recover-assoc-lifetime-constraint.stderr @@ -0,0 +1,12 @@ +error: associated lifetimes are not supported + --> $DIR/recover-assoc-lifetime-constraint.rs:3:11 + | +LL | bar::<Item = 'a>(); + | ^^^^^^^-- + | | + | the lifetime is given here + | + = help: if you meant to specify a trait object, write `dyn Trait + 'lifetime` + +error: aborting due to previous error + |