Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
25
tests/ui/attr-usage-inline.rs
Normal file
25
tests/ui/attr-usage-inline.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
#[inline]
|
||||
fn f() {}
|
||||
|
||||
#[inline] //~ ERROR: attribute should be applied to function or closure
|
||||
struct S;
|
||||
|
||||
struct I {
|
||||
#[inline]
|
||||
i: u8,
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[inline]
|
||||
macro_rules! m_e {
|
||||
() => {};
|
||||
}
|
||||
|
||||
#[inline] //~ ERROR: attribute should be applied to function or closure
|
||||
macro_rules! m {
|
||||
() => {};
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue