]> git.lizzy.rs Git - rust.git/blob - src/test/ui/keyword/keyword-self-as-type-param.rs
Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakis
[rust.git] / src / test / 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() {}