blob: a4c59dced029a89db7514e82d9e3f0242230fd86 [file] [log] [blame]
// Test a default that references `Self` which is then used in an object type.
// Issue #18956.
#![feature(default_type_params)]
trait Foo<T=Self> {
fn method(&self);
}
fn foo(x: &dyn Foo) { }
//~^ ERROR the type parameter `T` must be explicitly specified
fn main() { }