about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-10 22:30:14 +0000
committerbors <bors@rust-lang.org>2018-06-10 22:30:14 +0000
commitb202bebdeea73c32c69592fcb60ff2afaa93d354 (patch)
tree56ce0075d8ceefd0fb3c685eb9637b3e91a0de8c /src/test/compile-fail
parenta805a2a5ebba2802f432d79874e59c24e398f82a (diff)
parentf2349d5ec6d2f184d8b83cebe255834f927568c3 (diff)
downloadrust-b202bebdeea73c32c69592fcb60ff2afaa93d354.tar.gz
rust-b202bebdeea73c32c69592fcb60ff2afaa93d354.zip
Auto merge of #51475 - GuillaumeGomez:fix-error-codes, r=Manishearth
Fix error codes
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/edition-raw-pointer-method-2018.rs2
-rw-r--r--src/test/compile-fail/rfc-2008-non-exhaustive/invalid-attribute.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/edition-raw-pointer-method-2018.rs b/src/test/compile-fail/edition-raw-pointer-method-2018.rs
index d01cac019e3..d0cf81d59cf 100644
--- a/src/test/compile-fail/edition-raw-pointer-method-2018.rs
+++ b/src/test/compile-fail/edition-raw-pointer-method-2018.rs
@@ -18,5 +18,5 @@ fn main() {
     let x = 0;
     let y = &x as *const _;
     let _ = y.is_null();
-    //~^ error: the type of this value must be known to call a method on a raw pointer on it [E0908]
+    //~^ error: the type of this value must be known to call a method on a raw pointer on it [E0699]
 }
diff --git a/src/test/compile-fail/rfc-2008-non-exhaustive/invalid-attribute.rs b/src/test/compile-fail/rfc-2008-non-exhaustive/invalid-attribute.rs
index e48d989c01d..df4fe1e77e9 100644
--- a/src/test/compile-fail/rfc-2008-non-exhaustive/invalid-attribute.rs
+++ b/src/test/compile-fail/rfc-2008-non-exhaustive/invalid-attribute.rs
@@ -11,15 +11,15 @@
 #![feature(non_exhaustive)]
 
 #[non_exhaustive(anything)]
-//~^ ERROR attribute should be empty [E0911]
+//~^ ERROR attribute should be empty [E0702]
 struct Foo;
 
 #[non_exhaustive]
-//~^ ERROR attribute can only be applied to a struct or enum [E0910]
+//~^ ERROR attribute can only be applied to a struct or enum [E0701]
 trait Bar { }
 
 #[non_exhaustive]
-//~^ ERROR attribute can only be applied to a struct or enum [E0910]
+//~^ ERROR attribute can only be applied to a struct or enum [E0701]
 union Baz {
     f1: u16,
     f2: u16