rust/tests/ui/force-inlining/inherent.stderr
Reuben Cruise 5bf5e71160 Extends rustc_force_inline to inherent methods
- Changes parser to allow application to inherent methods.
- Adds tests to confirm extended functionality works just as the existing.
2025-10-02 11:30:11 +01:00

14 lines
326 B
Plaintext

error: `Foo::bar` is incompatible with `#[rustc_force_inline]`
--> $DIR/inherent.rs:7:5
|
LL | #[rustc_force_inline]
| ^^^^^^^^^^^^^^^^^^^^^
...
LL | fn bar() {}
| -------- `Foo::bar` defined here
|
= note: incompatible due to: #[rustc_no_mir_inline]
error: aborting due to 1 previous error