diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/nll/issue-50716.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/nll/issue-50716.stderr b/src/test/ui/nll/issue-50716.stderr new file mode 100644 index 000000000..38dd1b5f6 --- /dev/null +++ b/src/test/ui/nll/issue-50716.stderr @@ -0,0 +1,11 @@ +error: lifetime may not live long enough + --> $DIR/issue-50716.rs:14:14 + | +LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>) + | -- lifetime `'a` defined here +... +LL | let _x = *s; + | ^^ proving this value is `Sized` requires that `'a` must outlive `'static` + +error: aborting due to previous error + |