diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-09-19 10:01:01 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-19 10:01:01 -0700 |
| commit | ebe9ec80746e7943c3d53bedbbded7f0afc0b3d5 (patch) | |
| tree | 3cd298493383272119c1fc9e6a7ecbc38b88d80f /src/test | |
| parent | 0e18c0634ebc2d47a4acf217f7ad3a8b9c9306fc (diff) | |
| parent | 5aa264a14fbc386c2cbb1d8f7dc0f0d7c7f1a773 (diff) | |
| download | rust-ebe9ec80746e7943c3d53bedbbded7f0afc0b3d5.tar.gz rust-ebe9ec80746e7943c3d53bedbbded7f0afc0b3d5.zip | |
rollup merge of #17379 : pcwalton/keywords-followed-by-double-colon
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/keywords-followed-by-double-colon.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/keywords-followed-by-double-colon.rs b/src/test/compile-fail/keywords-followed-by-double-colon.rs new file mode 100644 index 00000000000..f69b041597e --- /dev/null +++ b/src/test/compile-fail/keywords-followed-by-double-colon.rs @@ -0,0 +1,15 @@ +// Copyright 2014 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. + +fn main() { + struct::foo(); //~ ERROR expected identifier + mut::baz(); //~ ERROR expected identifier +} + |
