/
issue-13428.stderr
34 lines (31 loc) · 1.05 KB
/
issue-13428.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error[E0308]: mismatched types
--> $DIR/issue-13428.rs:13:20
|
LL | fn foo() -> String { //~ ERROR mismatched types
| ____________________^
LL | | format!("Hello {}",
LL | | "world")
LL | | // Put the trailing semicolon on its own line to test that the
LL | | // note message gets the offending semicolon exactly
LL | | ;
| | - help: consider removing this semicolon
LL | | }
| |_^ expected struct `std::string::String`, found ()
|
= note: expected type `std::string::String`
found type `()`
error[E0308]: mismatched types
--> $DIR/issue-13428.rs:21:20
|
LL | fn bar() -> String { //~ ERROR mismatched types
| ____________________^
LL | | "foobar".to_string()
LL | | ;
| | - help: consider removing this semicolon
LL | | }
| |_^ expected struct `std::string::String`, found ()
|
= note: expected type `std::string::String`
found type `()`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.