summary refs log tree commit diff
path: root/src/test/ui/feature-gate-main.stderr
blob: 90cf12822c804315fa2154a360b44e6f38fa86d0 (plain)
1
2
3
4
5
6
7
8
9
10
error: declaration of a nonstandard #[main] function may change over time, for now a top-level `fn main()` is required (see issue #29634)
  --> $DIR/feature-gate-main.rs:12:1
   |
12 | fn foo() {} //~ ERROR: declaration of a nonstandard #[main] function may change over time
   | ^^^^^^^^^^^
   |
   = help: add #![feature(main)] to the crate attributes to enable

error: aborting due to previous error