Files
rust/src/test/ui/rfc-2005-default-binding-mode/lit.stderr

22 lines
566 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/lit.rs:7:13
|
2019-03-09 15:03:44 +03:00
LL | "abc" => true,
| ^^^^^ expected &str, found str
|
= note: expected type `&&str`
found reference `&'static str`
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/lit.rs:16:9
|
2019-03-09 15:03:44 +03:00
LL | b"abc" => true,
| ^^^^^^ expected &[u8], found array `[u8; 3]`
|
= note: expected type `&&[u8]`
found reference `&'static [u8; 3]`
error: aborting due to 2 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0308`.