diff options
Diffstat (limited to 'tests/ui/lifetimes/explicit-lifetime-required-14285.stderr')
| -rw-r--r-- | tests/ui/lifetimes/explicit-lifetime-required-14285.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/explicit-lifetime-required-14285.stderr b/tests/ui/lifetimes/explicit-lifetime-required-14285.stderr new file mode 100644 index 00000000000..576de45f94f --- /dev/null +++ b/tests/ui/lifetimes/explicit-lifetime-required-14285.stderr @@ -0,0 +1,15 @@ +error[E0621]: explicit lifetime required in the type of `a` + --> $DIR/explicit-lifetime-required-14285.rs:14:5 + | +LL | B(a) + | ^^^^ lifetime `'a` required + | +help: add explicit lifetime `'a` to the type of `a` + | +LL - fn foo<'a>(a: &dyn Foo) -> B<'a> { +LL + fn foo<'a>(a: &'a (dyn Foo + 'a)) -> B<'a> { + | + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0621`. |
