Skip to content

Commit

Permalink
Bless nll
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Nov 29, 2021
1 parent eeaa215 commit 692e96c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/ui/fn/implied-bounds-unnorm-associated-type.nll.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
error: lifetime may not live long enough
--> $DIR/implied-bounds-unnorm-associated-type.rs:14:5
|
LL | fn f<'a, 'b>(s: &'b str, _: <&'a &'b () as Trait>::Type) -> &'a str {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
LL | s
| ^ returning this value requires that `'b` must outlive `'a`
|
= help: consider adding the following bound: `'b: 'a`

error: aborting due to previous error

0 comments on commit 692e96c

Please sign in to comment.