]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
223e47cc | 3 | // Check that merely having lifetime parameters is not |
94b46f34 | 4 | // enough for codegen to consider this as non-monomorphic, |
223e47cc LB |
5 | // which led to various assertions and failures in turn. |
6 | ||
c34b1796 AL |
7 | // pretty-expanded FIXME #23616 |
8 | ||
1a4d82fc | 9 | struct S<'a> { |
c34b1796 | 10 | v: &'a isize |
223e47cc LB |
11 | } |
12 | ||
13 | fn f<'lt>(_s: &'lt S<'lt>) {} | |
14 | ||
15 | pub fn main() { | |
16 | f(& S { v: &42 }); | |
17 | } |