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