]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsized/unsized-inherent-impl-self-type.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / unsized / unsized-inherent-impl-self-type.rs
1 // Test sized-ness checking in substitution in impls.
2
3 // impl - struct
4
5 struct S5<Y>(Y);
6
7 impl<X: ?Sized> S5<X> {
8     //~^ ERROR the size for values of type
9 }
10
11 fn main() { }