]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/lit.stderr
Auto merge of #45837 - SimonSapin:file_read_write, r=dtolnay
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / lit.stderr
1 error[E0308]: mismatched types
2   --> $DIR/lit.rs:19:13
3    |
4 19 |             "abc" => true, //~ ERROR mismatched types
5    |             ^^^^^ expected &str, found str
6    |
7    = note: expected type `&&str`
8               found type `&'static str`
9
10 error[E0308]: mismatched types
11   --> $DIR/lit.rs:28:9
12    |
13 28 |         b"abc" => true, //~ ERROR mismatched types
14    |         ^^^^^^ expected &[u8], found array of 3 elements
15    |
16    = note: expected type `&&[u8]`
17               found type `&'static [u8; 3]`
18
19 error: aborting due to 2 previous errors
20