Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/lint/empty-lint-attributes.rs
Normal file
17
tests/ui/lint/empty-lint-attributes.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
#![feature(lint_reasons)]
|
||||
|
||||
// check-pass
|
||||
|
||||
// Empty (and reason-only) lint attributes are legal—although we may want to
|
||||
// lint them in the future (Issue #55112).
|
||||
|
||||
#![allow()]
|
||||
#![warn(reason = "observationalism")]
|
||||
|
||||
#[forbid()]
|
||||
fn devoir() {}
|
||||
|
||||
#[deny(reason = "ultion")]
|
||||
fn waldgrave() {}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue