]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/lit.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / lit.stderr
1 error[E0308]: mismatched types
2   --> $DIR/lit.rs:7:13
3    |
4 LL |             "abc" => true,
5    |             ^^^^^ expected &str, found str
6    |
7    = note:   expected type `&&str`
8            found reference `&'static str`
9
10 error[E0308]: mismatched types
11   --> $DIR/lit.rs:16:9
12    |
13 LL |         b"abc" => true,
14    |         ^^^^^^ expected &[u8], found array `[u8; 3]`
15    |
16    = note:   expected type `&&[u8]`
17            found reference `&'static [u8; 3]`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.