about summary refs log tree commit diff
path: root/tests/ui/inference/str-as-char-non-lit.stderr
blob: 7675fe0133077ac5dba588a5dad73f9d1414349f (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/str-as-char-non-lit.rs:6:19
   |
LL |     let _: &str = ('a');
   |            ----   ^^^^^ expected `&str`, found `char`
   |            |
   |            expected due to this

error[E0308]: mismatched types
  --> $DIR/str-as-char-non-lit.rs:8:19
   |
LL |     let _: &str = token();
   |            ----   ^^^^^^^ expected `&str`, found `char`
   |            |
   |            expected due to this

error: aborting due to 2 previous errors

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