]> git.lizzy.rs Git - rust.git/blob - tests/ui/keyword/keyword-self-as-type-param.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / keyword / keyword-self-as-type-param.rs
1 // Regression test of #36638.
2
3 struct Foo<Self>(Self);
4 //~^ ERROR unexpected keyword `Self` in generic parameters
5 //~| ERROR recursive type `Foo` has infinite size
6
7 trait Bar<Self> {}
8 //~^ ERROR unexpected keyword `Self` in generic parameters
9
10 fn main() {}