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