fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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