-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Tidying up tests/ui/issues 15 tests [8/N]
#151159
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| //! regression test for <https://github.com/rust-lang/rust/issues/50600> | ||
| struct Foo( | ||
| fn([u8; |x: u8| {}]), //~ ERROR mismatched types | ||
| ); | ||
|
|
||
| fn main() {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| //! regression test for <https://github.com/rust-lang/rust/issues/42453> | ||
| //! struct named "builder" conflicted with derive macro internals. | ||
| //@ run-pass | ||
| #![allow(dead_code)] | ||
| #![allow(non_camel_case_types)] | ||
|
|
||
| #[derive(Debug)] | ||
| struct builder; | ||
|
|
||
| fn main() {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| //! regression test for <https://github.com/rust-lang/rust/issues/17361> | ||
| //! Test that HIR ty lowering doesn't forget about mutability of `&mut str`. | ||
| //@ run-pass | ||
|
|
||
| fn main() { | ||
| fn foo<T: ?Sized>(_: &mut T) {} | ||
| let _f: fn(&mut str) = foo; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| //! regression test for <https://github.com/rust-lang/rust/issues/22706> | ||
| fn is_copy<T: ::std::marker<i32>::Copy>() {} | ||
| //~^ ERROR type arguments are not allowed on module `marker` [E0109] | ||
| fn main() {} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is generics