rust/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr

19 lines
484 B
Plaintext
Raw Normal View History

2020-09-01 07:30:16 -05:00
error: generic `Self` types are currently not permitted in anonymous constants
--> $DIR/self-ty-in-const-2.rs:17:41
|
LL | let _: [u8; std::mem::size_of::<Self>()];
| ^^^^
|
note: not a concrete type
--> $DIR/self-ty-in-const-2.rs:15:1
|
LL | / impl<T> Baz for Bar<T> {
LL | | fn hey() {
LL | | let _: [u8; std::mem::size_of::<Self>()];
LL | | }
LL | | }
| |_^
error: aborting due to previous error