]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0326.md
Spell check librustc_error_codes
[rust.git] / src / librustc_error_codes / error_codes / E0326.md
1 The types of any associated constants in a trait implementation must match the
2 types in the trait definition. This error indicates that there was a mismatch.
3
4 Here's an example of this error:
5
6 ```compile_fail,E0326
7 trait Foo {
8     const BAR: bool;
9 }
10
11 struct Bar;
12
13 impl Foo for Bar {
14     const BAR: u32 = 5; // error, expected bool, found u32
15 }
16 ```