diff options
| author | bors <bors@rust-lang.org> | 2013-09-19 11:11:01 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-19 11:11:01 -0700 |
| commit | 85c0fb7b8a81fc48a2155decd20abf16b1c5eeb6 (patch) | |
| tree | 391ceb609f943146aacbadfaafc0c93451522037 /src/test | |
| parent | 755f6229da1d436f4cb23fffea644ba13291b434 (diff) | |
| parent | 2f845a5e0aa9cdd4bc5dc25341bb241643f76f11 (diff) | |
| download | rust-85c0fb7b8a81fc48a2155decd20abf16b1c5eeb6.tar.gz rust-85c0fb7b8a81fc48a2155decd20abf16b1c5eeb6.zip | |
auto merge of #9295 : alexcrichton/rust/fix-lang-items, r=thestinger
Also add a test to help prevent this from getting out of sync again.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/required-lang-item.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/required-lang-item.rs b/src/test/compile-fail/required-lang-item.rs new file mode 100644 index 00000000000..2a564990c53 --- /dev/null +++ b/src/test/compile-fail/required-lang-item.rs @@ -0,0 +1,15 @@ +// Copyright 2013 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. + +#[no_std]; + +// error-pattern:requires `start` lang_item + +fn main() {} |
