Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
rustdoc-ui
/
invalid_const_in_lifetime_position.rs
blob: c3f4fd63bac70bc43aa5d3b8368bf5d0eff78567 [
file
] [
log
] [
blame
]
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