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