rust/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

15 lines
403 B
Plaintext

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