summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/invalid_const_in_lifetime_position.rs
blob: c3f4fd63bac70bc43aa5d3b8368bf5d0eff78567 (plain)
1
2
3
4
5
6
trait X {
    type Y<'a>;
}
fn f<'a>(arg : Box<dyn X<Y<1> = &'a ()>>) {}
//~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments
//~| ERROR associated type takes 0 generic arguments but 1 generic argument