]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/resolve/resolve-variant-assoc-item.rs
clarify what the item is in "not a module" error
[rust.git] / src / test / ui / resolve / resolve-variant-assoc-item.rs
index 01f493e954b13570eaac596cb5cab08f1faf357e..db4fedfb0bdf866b643c8c3897878ebfb8eae7a1 100644 (file)
@@ -1,17 +1,7 @@
-// Copyright 2016 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.
-
 enum E { V }
 use E::V;
 
 fn main() {
-    E::V::associated_item; //~ ERROR failed to resolve: not a module `V`
-    V::associated_item; //~ ERROR failed to resolve: not a module `V`
+    E::V::associated_item; //~ ERROR failed to resolve: `V` is a variant, not a module
+    V::associated_item; //~ ERROR failed to resolve: `V` is a variant, not a module
 }