fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
572 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/lit.rs:7:13
3   |
4LL |             "abc" => true,
5   |             ^^^^^ expected `&str`, found `str`
6   |
7   = note:   expected type `&&str`
8           found reference `&'static str`
9
10error[E0308]: mismatched types
11  --> $DIR/lit.rs:16:9
12   |
13LL |         b"abc" => true,
14   |         ^^^^^^ expected `&[u8]`, found array `[u8; 3]`
15   |
16   = note:   expected type `&&[u8]`
17           found reference `&'static [u8; 3]`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.