diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-03-15 12:05:10 -0700 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-16 07:35:22 -0700 |
| commit | a4fa901dab3d07e344004eceb789d779efe949fd (patch) | |
| tree | c51786481c6e59db32f46a67db0b82c29e258ce4 /src/test | |
| parent | 802e7073b7f0cc531311ffd6386837e6c166e537 (diff) | |
| download | rust-a4fa901dab3d07e344004eceb789d779efe949fd.tar.gz rust-a4fa901dab3d07e344004eceb789d779efe949fd.zip | |
Regression test for #13407
Closes #13407.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-13407.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-13407.rs b/src/test/compile-fail/issue-13407.rs new file mode 100644 index 00000000000..f845eba4060 --- /dev/null +++ b/src/test/compile-fail/issue-13407.rs @@ -0,0 +1,19 @@ +// 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. + +mod A { + struct C; +} + +fn main() { + A::C = 1; + //~^ ERROR: illegal left-hand side expression + //~| ERROR: mismatched types +} |
