summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr
blob: c90774e944f1f48d690099893a5025992b15054c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/issue-79518-default_trait_method_normalization.rs:16:32
   |
LL |         Self::AssocInstance == [(); std::mem::size_of::<Self::Assoc>()];
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found array `[(); _]`
   |
   = note: expected associated type `<Self as Foo>::Assoc`
                        found array `[(); _]`
   = help: consider constraining the associated type `<Self as Foo>::Assoc` to `[(); _]` or calling a method that returns `<Self as Foo>::Assoc`
   = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.