diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/issue-84931.stderr')
-rw-r--r-- | src/test/ui/generic-associated-types/issue-84931.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/issue-84931.stderr b/src/test/ui/generic-associated-types/issue-84931.stderr new file mode 100644 index 000000000..11c3dffde --- /dev/null +++ b/src/test/ui/generic-associated-types/issue-84931.stderr @@ -0,0 +1,11 @@ +error[E0309]: the parameter type `T` may not live long enough + --> $DIR/issue-84931.rs:15:21 + | +LL | type Item<'a> = &'a mut T; + | ^^^^^^^^^- help: consider adding a where clause: `where T: 'a` + | | + | ...so that the reference type `&'a mut T` does not outlive the data it points at + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0309`. |