mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
4bb7bf64e0
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
9 lines
276 B
Rust
9 lines
276 B
Rust
// This checks that incorrect params on function parameters are caught
|
|
|
|
fn function(#[inline] param: u32) {
|
|
//~^ ERROR attribute cannot be used on
|
|
//~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes
|
|
}
|
|
|
|
fn main() {}
|