rust/tests/ui/inline_fn_without_body.rs
Ryan Cumming 7467b83377 Suggest removing inline attributes
This adds a `suggest_remove_item` helper that will remove an item and
all trailing whitespace. This should handle both attributes on the same
line as the function and on a separate line; the function takes the
position of the original attribute.
2018-01-18 20:02:42 +11:00

24 lines
259 B
Rust

#![warn(inline_fn_without_body)]
#![allow(inline_always)]
trait Foo {
#[inline]
fn default_inline();
#[inline(always)]fn always_inline();
#[inline(never)]
fn never_inline();
#[inline]
fn has_body() {
}
}
fn main() {
}