diff options
| author | bors <bors@rust-lang.org> | 2013-07-27 05:25:34 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-27 05:25:34 -0700 |
| commit | ed20fcc4596c45aef37a1e8a13dd9fcd6e0e6dd5 (patch) | |
| tree | 497aad16471137365b501ea6c091d6a556f707ee /src/test | |
| parent | e7211948a546596bbe058b4fd3748a24adecaf02 (diff) | |
| parent | 2a18c29d67943e284d89b14a7a26202a7dd37f9b (diff) | |
auto merge of #8060 : Blei/rust/fix-obsolete-extern-visibility-span, r=pcwalton
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/obsolete-syntax.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/compile-fail/obsolete-syntax.rs b/src/test/compile-fail/obsolete-syntax.rs index 65ba4ed6e00..706a64a99ac 100644 --- a/src/test/compile-fail/obsolete-syntax.rs +++ b/src/test/compile-fail/obsolete-syntax.rs @@ -63,4 +63,14 @@ fn obsolete_moves() { //~^ ERROR obsolete syntax: binary move } +extern mod obsolete_name { + //~^ ERROR obsolete syntax: named external module + fn bar(); +} + +pub extern { + //~^ ERROR obsolete syntax: `pub extern` + pub fn bar(); +} + fn main() { } |
