]> git.proxmox.com Git - rustc.git/blame - src/test/ui/where-clauses/where-clause-early-bound-lifetimes.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / where-clauses / where-clause-early-bound-lifetimes.rs
CommitLineData
b7449926
XL
1// run-pass
2#![allow(non_upper_case_globals)]
3
c34b1796
AL
4// pretty-expanded FIXME #23616
5
85aaf69f 6trait TheTrait { fn dummy(&self) { } }
223e47cc 7
c34b1796 8impl TheTrait for &'static isize { }
223e47cc 9
1a4d82fc 10fn foo<'a,T>(_: &'a T) where &'a T : TheTrait { }
970d7e83 11
1a4d82fc 12fn bar<T>(_: &'static T) where &'static T : TheTrait { }
223e47cc
LB
13
14fn main() {
c34b1796 15 static x: isize = 1;
1a4d82fc
JJ
16 foo(&x);
17 bar(&x);
223e47cc 18}