2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2013-03-06 15:18:46 -06:00
|
|
|
// Check that merely having lifetime parameters is not
|
2018-05-08 08:10:16 -05:00
|
|
|
// enough for codegen to consider this as non-monomorphic,
|
2013-03-06 11:27:23 -06:00
|
|
|
// which led to various assertions and failures in turn.
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-12-10 01:16:18 -06:00
|
|
|
struct S<'a> {
|
2015-03-25 19:06:52 -05:00
|
|
|
v: &'a isize
|
2013-03-06 11:27:23 -06:00
|
|
|
}
|
|
|
|
|
2013-03-06 15:18:46 -06:00
|
|
|
fn f<'lt>(_s: &'lt S<'lt>) {}
|
2013-03-06 11:27:23 -06:00
|
|
|
|
2013-03-27 11:58:28 -05:00
|
|
|
pub fn main() {
|
2013-03-06 11:27:23 -06:00
|
|
|
f(& S { v: &42 });
|
|
|
|
}
|