diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/issue-90014.stderr')
-rw-r--r-- | src/test/ui/generic-associated-types/issue-90014.stderr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/issue-90014.stderr b/src/test/ui/generic-associated-types/issue-90014.stderr new file mode 100644 index 000000000..457c582e8 --- /dev/null +++ b/src/test/ui/generic-associated-types/issue-90014.stderr @@ -0,0 +1,18 @@ +error[E0477]: the type `&mut ()` does not fulfill the required lifetime + --> $DIR/issue-90014.rs:14:20 + | +LL | type Fut<'a> where Self: 'a; + | ------------ definition of `Fut` from trait +... +LL | type Fut<'a> = impl Future<Output = ()>; + | ^^^^^^^^^^^^^^^^^^^^^^^^- help: try copying this clause from the trait: `where Self: 'a` + | +note: type must outlive the lifetime `'a` as defined here + --> $DIR/issue-90014.rs:14:14 + | +LL | type Fut<'a> = impl Future<Output = ()>; + | ^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0477`. |