]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | struct Bar<T>(T); |
2 | ||
3 | trait Baz { | |
4 | fn hey(); | |
5 | } | |
6 | ||
7 | impl Baz for u16 { | |
8 | fn hey() { | |
9 | let _: [u8; std::mem::size_of::<Self>()]; // ok | |
10 | } | |
11 | } | |
12 | ||
13 | impl<T> Baz for Bar<T> { | |
14 | fn hey() { | |
15 | let _: [u8; std::mem::size_of::<Self>()]; //~ERROR generic `Self` | |
16 | } | |
17 | } | |
18 | ||
19 | fn main() {} |