]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-5243.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-5243.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
223e47cc 3// Check that merely having lifetime parameters is not
94b46f34 4// enough for codegen to consider this as non-monomorphic,
223e47cc
LB
5// which led to various assertions and failures in turn.
6
c34b1796
AL
7// pretty-expanded FIXME #23616
8
1a4d82fc 9struct S<'a> {
c34b1796 10 v: &'a isize
223e47cc
LB
11}
12
13fn f<'lt>(_s: &'lt S<'lt>) {}
14
15pub fn main() {
16 f(& S { v: &42 });
17}