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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
337 B
Plaintext
Raw Normal View History

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