]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-parameter-defaults-referencing-Self.rs
Make `output_filenames` a real query
[rust.git] / tests / ui / type / type-parameter-defaults-referencing-Self.rs
1 // Test a default that references `Self` which is then used in an object type.
2 // Issue #18956.
3
4 trait Foo<T=Self> {
5     fn method(&self);
6 }
7
8 fn foo(x: &dyn Foo) { }
9 //~^ ERROR the type parameter `T` must be explicitly specified
10
11 fn main() { }