os-rust/src/test/ui/elided-test.stderr
Esteban Kuber 91f3603299 Do not point at whole file missing fn main
Only point at the end of the crate. We could try making it point at the
beginning of the crate, but that is confused with `DUMMY_SP`, causing
the output to be *worse*.

This change will make it so that VSCode will *not* underline the whole
file when `main` is missing, so other errors will be visible.
2022-03-05 02:42:55 +00:00

9 lines
280 B
Text

error[E0601]: `main` function not found in crate `elided_test`
--> $DIR/elided-test.rs:7:2
|
LL | }
| ^ consider adding a `main` function to `$DIR/elided-test.rs`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0601`.