summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/generic-associated-types-bad.region.stderr
blob: 74ec39424edcbdeb6fdfdf503b3dbb229b040f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: lifetime may not live long enough
  --> $DIR/generic-associated-types-bad.rs:25:12
   |
LL | fn user<'a>() {
   |         -- lifetime `'a` defined here
LL |     #[cfg(region)]
LL |     let _: Ty::Static<&'a str> = "";
   |            ^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`

error: aborting due to previous error