mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
8 lines
299 B
Rust
8 lines
299 B
Rust
// This checks that incorrect params on function parameters are caught
|
|
|
|
fn function(#[inline] param: u32) {
|
|
//~^ ERROR attribute should be applied to function or closure
|
|
//~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes
|
|
}
|
|
|
|
fn main() {}
|