about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-08-17 06:25:25 -0700
committerGitHub <noreply@github.com>2016-08-17 06:25:25 -0700
commit02a8e2c285ffda2c9b9bc6d41ff3d58ad00009c9 (patch)
tree0757c30ffe16aa6ef2fdd53b444a2bb44ab22dfd /src/test
parentea09b7d8c6eeeb8433bbdda50ffcc989d4f82fdf (diff)
parenta026e2c727312fc47b111cc29e684adec7caf341 (diff)
downloadrust-02a8e2c285ffda2c9b9bc6d41ff3d58ad00009c9.tar.gz
rust-02a8e2c285ffda2c9b9bc6d41ff3d58ad00009c9.zip
Rollup merge of #35670 - RockyTV:e0365, r=jonathandturner
Update error E0365 to new format

Fixes #35633 as part of #35233.

r? @jonathandturner
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/E0365.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0365.rs b/src/test/compile-fail/E0365.rs
index 7b0fbcc6203..ea5fd6ed477 100644
--- a/src/test/compile-fail/E0365.rs
+++ b/src/test/compile-fail/E0365.rs
@@ -12,6 +12,9 @@ mod foo {
     pub const X: u32 = 1;
 }
 
-pub use foo as foo2; //~ ERROR E0365
+pub use foo as foo2;
+//~^ ERROR `foo` is private, and cannot be reexported [E0365]
+//~| NOTE reexport of private `foo`
+//~| NOTE consider declaring type or module `foo` with `pub`
 
 fn main() {}