]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2005-default-binding-mode/lit.stderr
New upstream version 1.62.1+dfsg1
[rustc.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 | match &s {
5 | -- this expression has type `&&str`
6 LL | "abc" => true,
7 | ^^^^^ expected `&str`, found `str`
8 |
9 = note: expected reference `&&str`
10 found reference `&'static str`
11
12 error[E0308]: mismatched types
13 --> $DIR/lit.rs:16:9
14 |
15 LL | match &s {
16 | -- this expression has type `&&[u8]`
17 LL | b"abc" => true,
18 | ^^^^^^ expected `&[u8]`, found array `[u8; 3]`
19 |
20 = note: expected reference `&&[u8]`
21 found reference `&'static [u8; 3]`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.