]> git.lizzy.rs Git - rust.git/blob - src/test/ui/keyword/keyword-self-as-type-param.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[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() {}