blob: e5c81556e26b327b8390a1ddb8b9fee0ec80a136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Test a default that references `Self` which is then used in an object type.
// Issue #18956.
trait Foo<T=Self> {
fn method(&self);
}
fn foo(x: &dyn Foo) { }
//~^ ERROR the type parameter `T` must be explicitly specified
fn main() { }
|