]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc-ui/invalid_const_in_lifetime_position.rs
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / rustdoc-ui / invalid_const_in_lifetime_position.rs
1 trait X {
2 type Y<'a>;
3 }
4 fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
5 //~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments
6 //~| ERROR associated type takes 0 generic arguments but 1 generic argument