]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-49040.rs
Provide a span if main function is not present in crate
[rust.git] / src / test / ui / issues / issue-49040.rs
index 866ecd9e1d951986cee50c427ef8bdc542e379f9..b7a541dd6642a763aa7411e086ac949de13696c5 100644 (file)
@@ -1,12 +1,3 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 #![allow(unused_variables)]; //~ ERROR expected item, found `;`
-fn main() {}
+//~^ ERROR `main` function
+fn foo() {}