Skip to content

Commit 8e11189

Browse files
committed
Move tests to ui
1 parent 229d0d3 commit 8e11189

27 files changed

+269
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/block-must-not-have-result-do.rs:13:9
3+
|
4+
13 | true //~ ERROR mismatched types
5+
| ^^^^ expected (), found bool
6+
|
7+
= note: expected type `()`
8+
found type `bool`
9+
10+
error: aborting due to previous error(s)
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/block-must-not-have-result-res.rs:15:9
3+
|
4+
15 | true //~ ERROR mismatched types
5+
| ^^^^ expected (), found bool
6+
|
7+
= note: expected type `()`
8+
found type `bool`
9+
10+
error: aborting due to previous error(s)
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/block-must-not-have-result-while.rs:13:9
3+
|
4+
13 | true //~ ERROR mismatched types
5+
| ^^^^ expected (), found bool
6+
|
7+
= note: expected type `()`
8+
found type `bool`
9+
10+
error: aborting due to previous error(s)
11+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
error[E0308]: mismatched types
2+
--> $DIR/consider-removing-last-semi.rs:11:18
3+
|
4+
11 | fn f() -> String { //~ ERROR mismatched types
5+
| __________________^
6+
12 | | 0u8;
7+
13 | | "bla".to_string(); //~ HELP consider removing this semicolon
8+
14 | | }
9+
| |_^ expected struct `std::string::String`, found ()
10+
|
11+
= note: expected type `std::string::String`
12+
found type `()`
13+
help: consider removing this semicolon:
14+
--> $DIR/consider-removing-last-semi.rs:13:22
15+
|
16+
13 | "bla".to_string(); //~ HELP consider removing this semicolon
17+
| ^
18+
19+
error[E0308]: mismatched types
20+
--> $DIR/consider-removing-last-semi.rs:16:18
21+
|
22+
16 | fn g() -> String { //~ ERROR mismatched types
23+
| __________________^
24+
17 | | "this won't work".to_string();
25+
18 | | "removeme".to_string(); //~ HELP consider removing this semicolon
26+
19 | | }
27+
| |_^ expected struct `std::string::String`, found ()
28+
|
29+
= note: expected type `std::string::String`
30+
found type `()`
31+
help: consider removing this semicolon:
32+
--> $DIR/consider-removing-last-semi.rs:18:27
33+
|
34+
18 | "removeme".to_string(); //~ HELP consider removing this semicolon
35+
| ^
36+
37+
error: aborting due to previous error(s)
38+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error[E0601]: main function not found
2+
3+
error: aborting due to previous error(s)
4+

0 commit comments

Comments
 (0)