diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-47511.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-47511.stderr b/src/test/ui/issues/issue-47511.stderr new file mode 100644 index 000000000..5b84f7ed6 --- /dev/null +++ b/src/test/ui/issues/issue-47511.stderr @@ -0,0 +1,17 @@ +error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types + --> $DIR/issue-47511.rs:8:15 + | +LL | fn f(_: X) -> X { + | ^ + | + = note: lifetimes appearing in an associated type are not considered constrained + +error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types + --> $DIR/issue-47511.rs:12:23 + | +LL | fn g<'a>(_: X<'a>) -> X<'a> { + | ^^^^^ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0581`. |