RS.CLIPPY.INLINE_FN_WITHOUT_BODY
Use of `#[inline]` on trait methods without bodies
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: inline_fn_without_body. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for #[inline] on trait methods without bodies
Why is this bad?
Only implementations of trait methods may be inlined. The inline attribute is ignored for trait methods without bodies.
Example
trait Animal {
#[inline]
fn name(&self) -> &\'static str;
}