forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#35713 - sanxiyn:ui-test, r=nikomatsakis
Use UI test to test spans, instead of forced line break There must be lots more, but these are what I could easily find.
- Loading branch information
Showing
4 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/move-closure.rs:15:17 | ||
| | ||
15 | let x: () = move || (); | ||
| ^^^^^^^^^^ expected (), found closure | ||
| | ||
= note: expected type `()` | ||
= note: found type `[closure@$DIR/move-closure.rs:15:17: 15:27]` | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error[E0220]: associated type `Trget` not found for `std::ops::Deref` | ||
--> $DIR/type-binding.rs:16:20 | ||
| | ||
16 | fn homura<T: Deref<Trget = i32>>(_: T) {} | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|