rust/tests/ui/attributes/z-crate-attr/injection.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
477 B
Text
Raw Normal View History

error: unexpected token: keyword `fn`
--> <crate attribute>:1:23
2025-03-10 23:25:22 -04:00
|
LL | #![feature(yeet_expr)]fn main(){}#[inline]
| ^^ unexpected token after this
2025-03-10 23:25:22 -04:00
error[E0601]: `main` function not found in crate `injection`
--> $DIR/injection.rs:3:12
|
LL | fn foo() {}
| ^ consider adding a `main` function to `$DIR/injection.rs`
error: aborting due to 2 previous errors
2025-03-10 23:25:22 -04:00
For more information about this error, try `rustc --explain E0601`.