-
-
Notifications
You must be signed in to change notification settings - Fork 17k
Lower attributes for functions without bodies #162761
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -5,4 +5,28 @@ fn function(#[inline] param: u32) { | |
| //~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes | ||
| } | ||
|
|
||
| trait Test { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know if it's worth duplicating the trait, type, and extern tests in the splat feature gate test, up to you.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's not worth duplicating the test |
||
| fn meow( | ||
| #[rustc_splat] a1: u32, | ||
| //~^ ERROR the `rustc_splat` attribute is an experimental feature | ||
| ); | ||
| fn meow2( | ||
| #[rustc_splat(invalid)] a4: u32, | ||
| //~^ ERROR the `rustc_splat` attribute is an experimental feature | ||
| //~| ERROR malformed `rustc_splat` attribute input | ||
| ); | ||
| } | ||
|
|
||
| type Meow = fn( | ||
| #[rustc_splat] a1: u32, | ||
| //~^ ERROR the `rustc_splat` attribute is an experimental feature | ||
| ); | ||
|
|
||
| extern "Rust" { | ||
| fn meow2( | ||
| #[rustc_splat] a1: u32, | ||
| //~^ ERROR the `rustc_splat` attribute is an experimental feature | ||
| ); | ||
| } | ||
|
|
||
| fn main() {} | ||
Uh oh!
There was an error while loading. Please reload this page.