]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-main.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / feature-gates / feature-gate-main.stderr
1 error[E0658]: declaration of a nonstandard #[main] function may change over time, for now a top-level `fn main()` is required (see issue #29634)
2   --> $DIR/feature-gate-main.rs:12:1
3    |
4 LL | fn foo() {} //~ ERROR: declaration of a nonstandard #[main] function may change over time
5    | ^^^^^^^^^^^
6    |
7    = help: add #![feature(main)] to the crate attributes to enable
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0658`.