diff options
| author | bors <bors@rust-lang.org> | 2015-03-16 07:37:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-16 07:37:27 +0000 |
| commit | 857ac28867722111249b5c3ef68e32499bd11ea0 (patch) | |
| tree | 8d6e8cd2fa1b1a08f4ed9aef3146cee0b4c0063a | |
| parent | cd3faf38ee475c406d649f7cc2e464d2fc19c90b (diff) | |
| parent | 3e01b9e194d88e63bf630a5984245ee89abc7ae8 (diff) | |
| download | rust-857ac28867722111249b5c3ef68e32499bd11ea0.tar.gz rust-857ac28867722111249b5c3ef68e32499bd11ea0.zip | |
Auto merge of #23411 - cmr:test-7950, r=huonw
Closes #7950
| -rw-r--r-- | src/test/compile-fail/issue-7950.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-7950.rs b/src/test/compile-fail/issue-7950.rs new file mode 100644 index 00000000000..01b90f5680f --- /dev/null +++ b/src/test/compile-fail/issue-7950.rs @@ -0,0 +1,17 @@ +// 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. + +// tests the good error message, not "missing module Foo" or something else unexpected + +struct Foo; + +fn main() { + Foo::bar(); //~ ERROR type `Foo` does not implement any method in scope named `bar` +} |
