]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/inline_fn_without_body.stderr
iterate List by value
[rust.git] / tests / ui / inline_fn_without_body.stderr
index 112fad812e5ef7fbd31228ae2b3f2db214ec8b65..32d35e209b01baf52ac56968a94ef8019d98bb4c 100644 (file)
@@ -1,25 +1,27 @@
 error: use of `#[inline]` on trait method `default_inline` which has no body
-  --> $DIR/inline_fn_without_body.rs:18:5
+  --> $DIR/inline_fn_without_body.rs:7:5
    |
-18 |       #[inline]
+LL |       #[inline]
    |  _____-^^^^^^^^
-19 | |     fn default_inline();
+LL | |     fn default_inline();
    | |____- help: remove
    |
    = note: `-D clippy::inline-fn-without-body` implied by `-D warnings`
 
 error: use of `#[inline]` on trait method `always_inline` which has no body
-  --> $DIR/inline_fn_without_body.rs:21:5
+  --> $DIR/inline_fn_without_body.rs:10:5
    |
-21 |     #[inline(always)]fn always_inline();
-   |     ^^^^^^^^^^^^^^^^^ help: remove
+LL |       #[inline(always)]
+   |  _____-^^^^^^^^^^^^^^^^
+LL | |     fn always_inline();
+   | |____- help: remove
 
 error: use of `#[inline]` on trait method `never_inline` which has no body
-  --> $DIR/inline_fn_without_body.rs:23:5
+  --> $DIR/inline_fn_without_body.rs:13:5
    |
-23 |       #[inline(never)]
+LL |       #[inline(never)]
    |  _____-^^^^^^^^^^^^^^^
-24 | |     fn never_inline();
+LL | |     fn never_inline();
    | |____- help: remove
 
 error: aborting due to 3 previous errors