1error: generic parameters may not be used in const operations 2 --> $DIR/self-ty-in-const-1.rs:2:41 3 | 4LL | fn t1() -> [u8; std::mem::size_of::<Self>()]; 5 | ^^^^ cannot perform const operation using `Self` 6 | 7 = note: type parameters may not be used in const expressions 8 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions 9 10error: generic `Self` types are currently not permitted in anonymous constants 11 --> $DIR/self-ty-in-const-1.rs:12:41 12 | 13LL | fn t3() -> [u8; std::mem::size_of::<Self>()] {} 14 | ^^^^ 15 | 16note: not a concrete type 17 --> $DIR/self-ty-in-const-1.rs:11:9 18 | 19LL | impl<T> Bar<T> { 20 | ^^^^^^ 21 22error: aborting due to 2 previous errors 23 24