diff options
Diffstat (limited to 'tests/ui/associated-inherent-types/regionck-0.stderr')
-rw-r--r-- | tests/ui/associated-inherent-types/regionck-0.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/regionck-0.stderr b/tests/ui/associated-inherent-types/regionck-0.stderr new file mode 100644 index 000000000..3a438ee63 --- /dev/null +++ b/tests/ui/associated-inherent-types/regionck-0.stderr @@ -0,0 +1,10 @@ +error: lifetime may not live long enough + --> $DIR/regionck-0.rs:11:12 + | +LL | fn user<'a>() { + | -- lifetime `'a` defined here +LL | let _: S::<&'a ()>::T; + | ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` + +error: aborting due to previous error + |