mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
18 lines
347 B
Rust
18 lines
347 B
Rust
//@ 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.
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
struct S<'a> {
|
|
v: &'a isize
|
|
}
|
|
|
|
fn f<'lt>(_s: &'lt S<'lt>) {}
|
|
|
|
pub fn main() {
|
|
f(& S { v: &42 });
|
|
}
|