summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr
blob: 41546292c47d1d847d57724dab6a1e853af4eade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 previous error