summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/char-as-str-multi.stderr
blob: 297ca2b548f7141d2b90868739dd7f67a06f2c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: mismatched types
  --> $DIR/char-as-str-multi.rs:5:19
   |
LL |     let _: char = "foo";
   |            ----   ^^^^^ expected `char`, found `&str`
   |            |
   |            expected due to this

error[E0308]: mismatched types
  --> $DIR/char-as-str-multi.rs:6:19
   |
LL |     let _: char = "";
   |            ----   ^^ expected `char`, found `&str`
   |            |
   |            expected due to this

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.