-
Notifications
You must be signed in to change notification settings - Fork 14k
Tidying up UI tests [3/N] #149353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+56
−39
Merged
Tidying up UI tests [3/N] #149353
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/ui/issues/issue-51515.rs → ...i/borrowck/assignment-to-immutable-ref.rs
This file contains hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| //! Regression test for issue <https://github.com/rust-lang/rust/issues/51154> | ||
| //! Test that anonymous closure types cannot be coerced to a generic type | ||
| //! parameter (F: FnMut()) when trying to box them. | ||
| fn foo<F: FnMut()>() { | ||
| let _: Box<F> = Box::new(|| ()); | ||
| //~^ ERROR mismatched types | ||
| } | ||
|
|
||
| fn main() {} |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
tests/ui/issues/issue-53348.rs → ...ed_types/assign-deref-string-to-string.rs
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-53348.stderr → ...ypes/assign-deref-string-to-string.stderr
This file contains hidden or 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
17 changes: 17 additions & 0 deletions
17
tests/ui/pattern/match-enum-struct-variant-field-missing.rs
Kivooeo marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,17 @@ | ||
| //! Regression test for issue <https://github.com/rust-lang/rust/issues/52717> | ||
| //! Test that matching an enum struct variant with a missing or incorrect field name | ||
| //! correctly yields a "does not have a field named" error. | ||
| enum A { | ||
| A { foo: usize }, | ||
| } | ||
|
|
||
| fn main() { | ||
| let x = A::A { foo: 3 }; | ||
| match x { | ||
| A::A { fob } => { | ||
| //~^ ERROR does not have a field named `fob` | ||
| println!("{fob}"); | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
tests/ui/pattern/match-enum-struct-variant-field-missing.stderr
This file contains hidden or 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,12 @@ | ||
| error[E0026]: variant `A::A` does not have a field named `fob` | ||
| --> $DIR/match-enum-struct-variant-field-missing.rs:12:16 | ||
| | | ||
| LL | A::A { fob } => { | ||
| | ^^^ | ||
| | | | ||
| | variant `A::A` does not have this field | ||
| | help: a field with a similar name exists: `foo` | ||
|
|
||
| error: aborting due to 1 previous error | ||
|
|
||
| For more information about this error, try `rustc --explain E0026`. |
3 changes: 2 additions & 1 deletion
3
tests/ui/issues/issue-53300.rs → ...pe/cannot-find-wrapper-with-impl-trait.rs
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
tests/ui/issues/issue-53300.stderr → ...annot-find-wrapper-with-impl-trait.stderr
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.