rust/tests/ui/deref-patterns/gate.stderr

12 lines
335 B
Plaintext
Raw Normal View History

2022-07-05 02:42:19 -05:00
error[E0308]: mismatched types
2022-07-13 13:13:07 -05:00
--> $DIR/gate.rs:4:9
2022-07-05 02:42:19 -05:00
|
LL | match String::new() {
| ------------- this expression has type `String`
LL | "" | _ => {}
| ^^ expected `String`, found `&str`
2022-07-05 02:42:19 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.