blob: d3c77403a375fe75ce60e61aebaa463fc9d268ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ run-pass
#![allow(dead_code)]
// Check that merely having lifetime parameters is not
// enough for codegen to consider this as non-monomorphic,
// which led to various assertions and failures in turn.
struct S<'a> {
v: &'a isize
}
fn f<'lt>(_s: &'lt S<'lt>) {}
pub fn main() {
f(& S { v: &42 });
}
|