]> git.lizzy.rs Git - rust.git/commitdiff
Remove NOTE/HELP annotations from error index tests
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 10 Dec 2017 21:12:25 +0000 (00:12 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Thu, 14 Dec 2017 20:23:07 +0000 (23:23 +0300)
119 files changed:
src/test/compile-fail/E0005.rs
src/test/compile-fail/E0007.rs
src/test/compile-fail/E0008.rs
src/test/compile-fail/E0009.rs
src/test/compile-fail/E0010.rs
src/test/compile-fail/E0017.rs
src/test/compile-fail/E0023.rs
src/test/compile-fail/E0025.rs
src/test/compile-fail/E0026.rs
src/test/compile-fail/E0027.rs
src/test/compile-fail/E0029.rs
src/test/compile-fail/E0030.rs
src/test/compile-fail/E0033.rs
src/test/compile-fail/E0034.rs
src/test/compile-fail/E0038.rs
src/test/compile-fail/E0040.rs
src/test/compile-fail/E0045.rs
src/test/compile-fail/E0049.rs
src/test/compile-fail/E0050.rs
src/test/compile-fail/E0055.rs
src/test/compile-fail/E0060.rs
src/test/compile-fail/E0061.rs
src/test/compile-fail/E0062.rs
src/test/compile-fail/E0063.rs
src/test/compile-fail/E0067.rs
src/test/compile-fail/E0069.rs
src/test/compile-fail/E0071.rs
src/test/compile-fail/E0076.rs
src/test/compile-fail/E0081.rs
src/test/compile-fail/E0084.rs
src/test/compile-fail/E0087.rs
src/test/compile-fail/E0089.rs
src/test/compile-fail/E0090.rs
src/test/compile-fail/E0091.rs
src/test/compile-fail/E0092.rs
src/test/compile-fail/E0093.rs
src/test/compile-fail/E0094.rs
src/test/compile-fail/E0106.rs
src/test/compile-fail/E0109.rs
src/test/compile-fail/E0110.rs
src/test/compile-fail/E0116.rs
src/test/compile-fail/E0117.rs
src/test/compile-fail/E0118.rs
src/test/compile-fail/E0119.rs
src/test/compile-fail/E0120.rs
src/test/compile-fail/E0124.rs
src/test/compile-fail/E0128.rs
src/test/compile-fail/E0130.rs
src/test/compile-fail/E0131.rs
src/test/compile-fail/E0132.rs
src/test/compile-fail/E0133.rs
src/test/compile-fail/E0137.rs
src/test/compile-fail/E0138.rs
src/test/compile-fail/E0162.rs
src/test/compile-fail/E0164.rs
src/test/compile-fail/E0184.rs
src/test/compile-fail/E0191.rs
src/test/compile-fail/E0194.rs
src/test/compile-fail/E0206.rs
src/test/compile-fail/E0207.rs
src/test/compile-fail/E0214.rs
src/test/compile-fail/E0220.rs
src/test/compile-fail/E0221.rs
src/test/compile-fail/E0223.rs
src/test/compile-fail/E0225.rs
src/test/compile-fail/E0229.rs
src/test/compile-fail/E0232.rs
src/test/compile-fail/E0243.rs
src/test/compile-fail/E0244.rs
src/test/compile-fail/E0253.rs
src/test/compile-fail/E0254.rs
src/test/compile-fail/E0259.rs
src/test/compile-fail/E0260.rs
src/test/compile-fail/E0263.rs
src/test/compile-fail/E0267.rs
src/test/compile-fail/E0268.rs
src/test/compile-fail/E0277-2.rs
src/test/compile-fail/E0277.rs
src/test/compile-fail/E0297.rs
src/test/compile-fail/E0301.rs
src/test/compile-fail/E0302.rs
src/test/compile-fail/E0303.rs
src/test/compile-fail/E0365.rs
src/test/compile-fail/E0375.rs
src/test/compile-fail/E0389.rs
src/test/compile-fail/E0392.rs
src/test/compile-fail/E0393.rs
src/test/compile-fail/E0394.rs
src/test/compile-fail/E0395.rs
src/test/compile-fail/E0396.rs
src/test/compile-fail/E0403.rs
src/test/compile-fail/E0407.rs
src/test/compile-fail/E0408.rs
src/test/compile-fail/E0426.rs
src/test/compile-fail/E0428.rs
src/test/compile-fail/E0435.rs
src/test/compile-fail/E0437.rs
src/test/compile-fail/E0438.rs
src/test/compile-fail/E0445.rs
src/test/compile-fail/E0446.rs
src/test/compile-fail/E0449.rs
src/test/compile-fail/E0451.rs
src/test/compile-fail/E0453.rs
src/test/compile-fail/E0454.rs
src/test/compile-fail/E0458.rs
src/test/compile-fail/E0459.rs
src/test/compile-fail/E0463.rs
src/test/compile-fail/E0496.rs
src/test/compile-fail/E0517.rs
src/test/compile-fail/E0518.rs
src/test/compile-fail/E0520.rs
src/test/compile-fail/E0527.rs
src/test/compile-fail/E0528.rs
src/test/compile-fail/E0529.rs
src/test/compile-fail/E0558.rs
src/test/compile-fail/E0559.rs
src/test/compile-fail/E0560.rs
src/test/compile-fail/E0605.rs
src/test/compile-fail/E0618.rs

index 809b3af3bea2a3e3306e52bd8e39d809c398f1b9..0405bba81b585d81a7a2d0ac63c3827210b46964 100644 (file)
@@ -11,5 +11,4 @@
 fn main() {
     let x = Some(1);
     let Some(y) = x; //~ ERROR E0005
-    //~| NOTE pattern `None` not covered
 }
index b72b5e3b2808bb5998b4d3db121c0abf7e76bbdb..d5acbdebbe9b9276564c49088b2b1e82eadac96b 100644 (file)
@@ -13,9 +13,7 @@ fn main() {
     match x {
         op_string @ Some(s) => {},
         //~^ ERROR E0007
-        //~| NOTE binds an already bound by-move value by moving it
         //~| ERROR E0303
-        //~| NOTE not allowed after `@`
         None => {},
     }
 }
index 20cc1cbd2232df233d3e92734901b112247bc1a5..ba5720e6f0abdd998c5b8e341d7ac1c8c7dcd133 100644 (file)
@@ -12,7 +12,6 @@ fn main() {
     match Some("hi".to_string()) {
         Some(s) if s.len() == 0 => {},
         //~^ ERROR E0008
-        //~| NOTE moves value into pattern guard
         _ => {},
     }
 }
index 767fc0cc5dc07eb29abc9ba6ce6a83f8231df6a8..02e2e80e7eab151d5ef7c04bb6b07ce7d2c348ad 100644 (file)
@@ -14,8 +14,6 @@ struct X { x: (), }
     match x {
         Some((y, ref z)) => {},
         //~^ ERROR E0009
-        //~| NOTE by-move pattern here
-        //~| NOTE both by-ref and by-move used
         None => panic!()
     }
 }
index ccaf01932d46684001261207044f9f76f23c7751..66a9319a7df4345c03a622818760910fb8adc696 100644 (file)
@@ -12,6 +12,5 @@
 #![allow(warnings)]
 
 const CON : Box<i32> = box 0; //~ ERROR E0010
-                              //~| NOTE allocation not allowed in
 
 fn main() {}
index 726a6f8c6feb452948f2367be61a8a477bafef7c..c98c35a1442add7ec66fd110eeef3d6da2fbf593 100644 (file)
 const C: i32 = 2;
 
 const CR: &'static mut i32 = &mut C; //~ ERROR E0017
-                                     //~| NOTE constants require immutable values
 static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
-                                              //~| NOTE statics require immutable values
                                               //~| ERROR cannot borrow
 static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017
-                                             //~| NOTE statics require immutable values
 fn main() {}
index c3623e3177b56207606de2bf18b45f8e38d45aa3..24032c59844dcf491881384a510ad52b193e6ee7 100644 (file)
@@ -18,10 +18,7 @@ fn main() {
     let x = Fruit::Apple(String::new(), String::new());
     match x {
         Fruit::Apple(a) => {}, //~ ERROR E0023
-                               //~| NOTE expected 2 fields, found 1
         Fruit::Apple(a, b, c) => {}, //~ ERROR E0023
-                                     //~| NOTE expected 2 fields, found 3
         Fruit::Pear(1, 2) => {}, //~ ERROR E0023
-                                 //~| NOTE expected 1 field, found 2
     }
 }
index 1d15cef8bc9308d54b0860948e0e88ff6308dc71..81d0ea8a5e21d1f5e16c68a49c2ee2daf68d5a17 100644 (file)
@@ -17,6 +17,4 @@ fn main() {
     let x = Foo { a:1, b:2 };
     let Foo { a: x, a: y, b: 0 } = x;
     //~^ ERROR field `a` bound multiple times in the pattern
-    //~| NOTE multiple uses of `a` in pattern
-    //~| NOTE first use of `a`
 }
index ac609da4cbdde72a105871b8e8e74a1d6edf4845..f8ad7b5a30e1c0f88ff23aa46a30309e0f2bef2b 100644 (file)
@@ -18,6 +18,5 @@ fn main() {
     match thing {
         Thing { x, y, z } => {}
         //~^ ERROR struct `Thing` does not have a field named `z` [E0026]
-        //~| NOTE struct `Thing` does not have field `z`
     }
 }
index ca496a24701fba48141189c332229ad1248707e5..b63b0ab5dfdef5fe45356e93d9ccf1efaf821f48 100644 (file)
@@ -19,6 +19,5 @@ fn main() {
     match d {
         Dog { age: x } => {}
         //~^ ERROR pattern does not mention field `name`
-        //~| NOTE missing field `name`
     }
 }
index e43290bb1541654bf293cc0fcb8a91f2ef451d12..80d215bd327c9f04757dc241e565795ea9893008 100644 (file)
@@ -14,9 +14,6 @@ fn main() {
     match s {
         "hello" ... "world" => {}
         //~^ ERROR only char and numeric types are allowed in range patterns
-        //~| NOTE ranges require char or numeric types
-        //~| NOTE start type: &'static str
-        //~| NOTE end type: &'static str
         //~| ERROR non-reference pattern used to match a reference
         _ => {}
     }
index 74e827b3379a71a085996207cdd0c283479ad686..ef3bded4beffbfb8dd9badf22ca7691c997b6e8c 100644 (file)
@@ -13,6 +13,5 @@ fn main() {
     match 5u32 {
         1000 ... 5 => {}
         //~^ ERROR lower range bound must be less than or equal to upper
-        //~| NOTE lower bound larger than upper bound
     }
 }
index 03d47472093924f22e9212d7a1186f6b7bb148d3..3cdbb55f6deafb1e8c60198f8d86edb0caf709a4 100644 (file)
@@ -15,12 +15,9 @@ trait SomeTrait {
 fn main() {
     let trait_obj: &SomeTrait = SomeTrait;
     //~^ ERROR expected value, found trait `SomeTrait`
-    //~| NOTE not a value
     //~| ERROR E0038
     //~| method `foo` has no receiver
-    //~| NOTE the trait `SomeTrait` cannot be made into an object
 
     let &invalid = trait_obj;
     //~^ ERROR E0033
-    //~| NOTE type `&SomeTrait` cannot be dereferenced
 }
index 136a74f7a8b74272f51fd9f7b6d33e2e8ca23bec..6eebd4d4d53606fc2279c2395f591e9676f20d66 100644 (file)
@@ -20,15 +20,12 @@ trait Trait2 {
 
 impl Trait1 for Test {
     fn foo() {}
-    //~^ NOTE candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
 }
 
 impl Trait2 for Test {
     fn foo() {}
-    //~^ NOTE candidate #2 is defined in an impl of the trait `Trait2` for the type `Test`
 }
 
 fn main() {
     Test::foo() //~ ERROR multiple applicable items in scope
-    //~| NOTE multiple `foo` found
 }
index 6cf3f1ebf19e4526d1c8b6b37fe6af2a9b4bd894..8087928c051bb1055b3c0490b9aefabead0f1ffa 100644 (file)
@@ -14,8 +14,6 @@ trait Trait {
 
 fn call_foo(x: Box<Trait>) {
     //~^ ERROR E0038
-    //~| NOTE the trait `Trait` cannot be made into an object
-    //~| NOTE method `foo` references the `Self` type in its arguments or return type
     let y = x.foo();
 }
 
index edfe22186e1622aba61df39b3028b5f762725f76..8385d68c540dd372cac0a2c253e2b149c6bb2f0f 100644 (file)
@@ -22,5 +22,4 @@ fn main() {
     let mut x = Foo { x: -7 };
     x.drop();
     //~^ ERROR E0040
-    //~| NOTE explicit destructor calls not allowed
 }
index 3f098861eb60c08587ccfc4af967f11a256ca4c9..57c639dd143a2c1137378606962858615275e4c5 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 extern "Rust" { fn foo(x: u8, ...); }   //~ ERROR E0045
-                                        //~| NOTE variadics require C or cdecl calling convention
 
 fn main() {
 }
index 33ebd3f7aca5e345d4d6f8018fd8cd9c7cd6129b..5867e11e9acc606e890b16c7964c74fa2865ff7e 100644 (file)
@@ -9,14 +9,13 @@
 // except according to those terms.
 
 trait Foo {
-    fn foo<T: Default>(x: T) -> Self; //~ NOTE expected 1 type parameter
+    fn foo<T: Default>(x: T) -> Self;
 }
 
 struct Bar;
 
 impl Foo for Bar {
     fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
-                                    //~| NOTE found 0 type parameters
 }
 
 fn main() {
index 5c53d62709aef2bb6239f266a3e375f1c830aae9..2ccc380c540d264cbe7c14e268ac6a1862eaed35 100644 (file)
@@ -9,20 +9,17 @@
 // except according to those terms.
 
 trait Foo {
-    fn foo(&self, x: u8) -> bool; //~ NOTE trait requires 2 parameters
-    fn bar(&self, x: u8, y: u8, z: u8); //~ NOTE trait requires 4 parameters
-    fn less(&self); //~ NOTE trait requires 1 parameter
+    fn foo(&self, x: u8) -> bool;
+    fn bar(&self, x: u8, y: u8, z: u8);
+    fn less(&self);
 }
 
 struct Bar;
 
 impl Foo for Bar {
     fn foo(&self) -> bool { true } //~ ERROR E0050
-                                   //~| NOTE expected 2 parameters, found 1
     fn bar(&self) { } //~ ERROR E0050
-                      //~| NOTE expected 4 parameters, found 1
     fn less(&self, x: u8, y: u8, z: u8) { } //~ ERROR E0050
-                                            //~| NOTE expected 1 parameter, found 4
 }
 
 fn main() {
index 2b2d278ad4cc63eb6f93cb47ecc215e3557d38ce..6e186b81cad8db791595c6012f324ab8cc6439f4 100644 (file)
@@ -20,5 +20,4 @@ fn main() {
     let ref_foo = &&Foo;
     ref_foo.foo();
     //~^ ERROR E0055
-    //~| NOTE deref recursion limit reached
 }
index 8246c42a4d4084398988cdc7f48562939cc0eb01..f4505209b66894c6623af12be11d08016561b46f 100644 (file)
@@ -10,7 +10,6 @@
 
 extern "C" {
     fn printf(_: *const u8, ...) -> u32;
-    //~^ NOTE defined here
 }
 
 fn main() {
index ebd4ad2e292aebd24c91cc20479b88a73fafd3e5..221e18cf89dd56a3d49325a6f285c355b93d77f5 100644 (file)
@@ -9,10 +9,8 @@
 // except according to those terms.
 
 fn f(a: u16, b: &str) {}
-//~^ NOTE defined here
 
 fn f2(a: u16) {}
-//~^ NOTE defined here
 
 fn main() {
     f(0);
index 822d93e52d588c5688a7ecc759dd023b9ee5cf1d..684c9464ff824a86da0a3413c8f0d985b77b500f 100644 (file)
@@ -14,9 +14,8 @@ struct Foo {
 
 fn main() {
     let x = Foo {
-        x: 0, //~ NOTE first use of `x`
+        x: 0,
         x: 0,
         //~^ ERROR E0062
-        //~| NOTE used more than once
     };
 }
index e7044102abc7148c0b7508b6cb686191ea7c3034..0208aff066b4d3ad4a36cd55dcd542b538d76bc4 100644 (file)
@@ -41,14 +41,10 @@ struct TruncatedPluralFoo {
 fn main() {
     let w = SingleFoo { };
     //~^ ERROR missing field `x` in initializer of `SingleFoo`
-    //~| NOTE missing `x`
     let x = PluralFoo {x: 1};
     //~^ ERROR missing fields `y`, `z` in initializer of `PluralFoo`
-    //~| NOTE missing `y`, `z`
     let y = TruncatedFoo{x:1};
     //~^ missing fields `a`, `b`, `y` and 1 other field in initializer of `TruncatedFoo`
-    //~| NOTE `a`, `b`, `y` and 1 other field
     let z = TruncatedPluralFoo{x:1};
     //~^ ERROR missing fields `a`, `b`, `c` and 2 other fields in initializer of `TruncatedPluralFoo`
-    //~| NOTE missing `a`, `b`, `c` and 2 other fields
 }
index 56d2e82806230230ae1fb6f693ed7da03f731108..a3fc30ee1c71ab8813637c84e880cf154117934f 100644 (file)
@@ -13,6 +13,4 @@
 fn main() {
     LinkedList::new() += 1; //~ ERROR E0368
                             //~^ ERROR E0067
-                            //~^^ NOTE invalid expression for left-hand side
-                            //~| NOTE cannot use `+=` on type `std::collections::LinkedList<_>`
 }
index 00facc91728027608eb85702b2517cd21e561ca1..a6a7898ed4e8950ee64f8200370c30bd675dca61 100644 (file)
@@ -11,7 +11,6 @@
 fn foo() -> u8 {
     return;
     //~^ ERROR `return;` in a function whose return type is not `()`
-    //~| NOTE return type is not ()
 }
 
 fn main() {
index 95653ae83e7cd6080fcd0142a727db746168d51c..d71dc7966fa91b501f4b3048c125df81576264af 100644 (file)
@@ -14,5 +14,4 @@ enum Foo {}
 fn main() {
     let u = FooAlias { value: 0 };
     //~^ ERROR expected struct, variant or union type, found enum `Foo` [E0071]
-    //~| NOTE not a struct
 }
index c31dc62eb666bc1b5961153eee5fa5cc98f245f0..b159cf107cefb0cc5b99bd623099ea7126ea1131 100644 (file)
@@ -13,7 +13,6 @@
 #[repr(simd)]
 struct Bad(u16, u32, u32);
 //~^ ERROR E0076
-//~| NOTE SIMD elements must have the same type
 
 fn main() {
 }
index 9911e093a898036d5fcae44fe656f6add46c2225..3b571667336ac9956baf27ed188d00a2e0355d63 100644 (file)
@@ -9,10 +9,9 @@
 // except according to those terms.
 
 enum Enum {
-    P = 3, //~ NOTE first use of `3isize`
+    P = 3,
     X = 3,
     //~^ ERROR discriminant value `3isize` already exists
-    //~| NOTE enum already has `3isize`
     Y = 5
 }
 
index d19eed7124e82b798ebe170723a853a651921e88..2be206c9702bf4b40151da6d568905d1fb638b0e 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #[repr(i32)] //~ ERROR: E0084
-enum Foo {} //~ NOTE: zero-variant enum
+enum Foo {}
 
 fn main() {
 }
index 0b8150affc0c022fc5f27b1c2ac242b29695bc63..6dc08860614d7af836f1984c0dad5564d8a9f67b 100644 (file)
@@ -13,8 +13,6 @@ fn bar<T>() {}
 
 fn main() {
     foo::<f64>(); //~ ERROR expected at most 0 type parameters, found 1 type parameter [E0087]
-                  //~^ NOTE expected 0 type parameters
 
     bar::<f64, u64>(); //~ ERROR expected at most 1 type parameter, found 2 type parameters [E0087]
-                       //~^ NOTE expected 1 type parameter
 }
index 986630d818fff94fe03b30e77ae2600e8e521dea..21df9abd0932e2e3cda269020d3eef3d54415d30 100644 (file)
@@ -12,5 +12,4 @@ fn foo<T, U>() {}
 
 fn main() {
     foo::<f64>(); //~ ERROR expected 2 type parameters, found 1 type parameter [E0089]
-                  //~| NOTE expected 2 type parameters
 }
index c37f37031add6827bbb03ed41a15103ee9de15e8..13b2131cc8be0d2aedb7df4a33841fe5aa26516e 100644 (file)
@@ -12,5 +12,4 @@ fn foo<'a: 'b, 'b: 'a>() {}
 
 fn main() {
     foo::<'static>(); //~ ERROR expected 2 lifetime parameters, found 1 lifetime parameter [E0090]
-                      //~^ NOTE expected 2 lifetime parameters
 }
index 0d6c246de2a0e79f2c6e0f6d148165684820d556..da988dbf819ac8c681a28d3bd4341c112c8e7d34 100644 (file)
@@ -9,9 +9,7 @@
 // except according to those terms.
 
 type Foo<T> = u32; //~ ERROR E0091
-                   //~| NOTE unused type parameter
 type Foo2<A, B> = Box<A>; //~ ERROR E0091
-                          //~| NOTE unused type parameter
 
 fn main() {
 }
index c8bb31a7857ee1495ad17512b0af982cba14cac1..b08164ac06d4235c0e95907f583406db6118efe9 100644 (file)
@@ -11,7 +11,7 @@
 #![feature(intrinsics)]
 extern "rust-intrinsic" {
     fn atomic_foo(); //~ ERROR E0092
-}                    //~| NOTE unrecognized atomic operation
+}
 
 fn main() {
 }
index fdc48455a679c03c028e73958b8e2f53cdbc56d1..d84f9f649113c1c2d282f40e02c1f1a0a29a8541 100644 (file)
@@ -12,7 +12,6 @@
 extern "rust-intrinsic" {
     fn foo();
     //~^ ERROR E0093
-    //~| NOTE unrecognized intrinsic
 }
 
 fn main() {
index d09353a2038004db9a803d5c691b4849d580d22d..3a31874b244229c272515034a16247a2da7efcdf 100644 (file)
@@ -11,7 +11,6 @@
 #![feature(intrinsics)]
 extern "rust-intrinsic" {
     fn size_of<T, U>() -> usize; //~ ERROR E0094
-                                 //~| NOTE expected 1 type parameter
 }
 
 fn main() {
index d5644ab0608877a2fd5ad62d4f2fb768abcdaa03..0674930a11cca8e5d2ae1c830c82d99d6efdabcc 100644 (file)
 struct Foo {
     x: &bool,
     //~^ ERROR E0106
-    //~| NOTE expected lifetime parameter
 }
 enum Bar {
     A(u8),
     B(&bool),
    //~^ ERROR E0106
-   //~| NOTE expected lifetime parameter
 }
 type MyStr = &str;
         //~^ ERROR E0106
-        //~| NOTE expected lifetime parameter
 
 struct Baz<'a>(&'a str);
 struct Buzz<'a, 'b>(&'a str, &'b str);
index 2e4cbf8692693c6844a318a924eba6bae0bb8c3e..9fc478422504bbe750c2f3b230f022bdb56c61cc 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 type X = u32<i32>; //~ ERROR E0109
-                   //~| NOTE type parameter not allowed
 
 fn main() {
 }
index 5a9e7a43de96b6b68142936404135d419937ba01..fd169f4acc5eb0250ad5fae39283d51883764ee0 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 type X = u32<'static>; //~ ERROR E0110
-                       //~| NOTE lifetime parameter not allowed on this type
 
 fn main() {
 }
index f885241eec4c7f1b00a7451fa11d091afb60fc95..cd7d8dc3efb986e9118da5707b93dc47caa08aba 100644 (file)
@@ -10,8 +10,6 @@
 
 impl Vec<u8> {}
 //~^ ERROR E0116
-//~| NOTE impl for type defined outside of crate.
-//~| NOTE define and implement a trait or new type instead
 
 fn main() {
 }
index 3da00da205fec27e1d827b0a08d613a9ee59fbd4..982f875c7b0a85108e75d4b315f392124780a083 100644 (file)
@@ -9,9 +9,6 @@
 // except according to those terms.
 
 impl Drop for u32 {} //~ ERROR E0117
-//~^ NOTE impl doesn't use types inside crate
-//~| NOTE the impl does not reference any types defined in this crate
-//~| NOTE define and implement a trait or new type instead
 //~| ERROR the Drop trait may only be implemented on structures
 //~| implementing Drop requires a struct
 
index 3fc478f1e403e3adf57ed00c48e547b1c1f1dfbb..d37ff34b861f41d272970920bf135f222773d5ff 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 impl (u8, u8) { //~ ERROR E0118
-//~^ NOTE impl requires a base type
-//~| NOTE either implement a trait on it or create a newtype to wrap it instead
     fn get_state(&self) -> String {
         String::new()
     }
index 56820bcd1840ceafae7c0c45bab2322aa53ac2e4..9528631b3047b6bd749b3aad2db3a7f1ea5cd4a0 100644 (file)
@@ -12,7 +12,7 @@ trait MyTrait {
     fn get(&self) -> usize;
 }
 
-impl<T> MyTrait for T { //~ NOTE first implementation here
+impl<T> MyTrait for T {
     fn get(&self) -> usize { 0 }
 }
 
@@ -21,7 +21,6 @@ struct Foo {
 }
 
 impl MyTrait for Foo { //~ ERROR E0119
-                       //~| NOTE conflicting implementation for `Foo`
     fn get(&self) -> usize { self.value }
 }
 
index 80cc0d2680f7c5a7456d22ade460122aaf963eeb..8d09b877f002b7ee4a72d5d7592251ccec60492b 100644 (file)
@@ -12,7 +12,6 @@ trait MyTrait { fn foo() {} }
 
 impl Drop for MyTrait {
               //~^ ERROR E0120
-              //~| NOTE implementing Drop requires a struct
     fn drop(&mut self) {}
 }
 
index 18c507461065642ab97ae52c82e48b5d116dc691..3ef20c6dd4084ce66e49b00fe71e88817a904ead 100644 (file)
@@ -9,10 +9,9 @@
 // except according to those terms.
 
 struct Foo {
-    field1: i32, //~ NOTE `field1` first declared here
+    field1: i32,
     field1: i32,
     //~^ ERROR field `field1` is already declared [E0124]
-    //~| NOTE field already declared
 }
 
 fn main() {
index f5829b93859412c007daad508a71767652eb9140..37071012825ec9b67f9984e7f202300f80eee315 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 struct Foo<T=U, U=()> { //~ ERROR E0128
-                        //~| NOTE defaulted type parameters cannot be forward declared
     field1: T,
     field2: U,
 }
index e9e027fd1dc1972aea32aabfc7005274dd2c4f76..d11b59cdf334d336439497c47174669f0e3577a0 100644 (file)
@@ -11,7 +11,6 @@
 extern {
     fn foo((a, b): (u32, u32));
     //~^ ERROR E0130
-    //~| NOTE pattern not allowed in foreign function
 }
 
 fn main() {
index e6e924e2d966fd9cc8a335060afe22098ed44b7a..c7e31edd301d454e9be032b518fef3946b2e3365 100644 (file)
@@ -10,5 +10,4 @@
 
 fn main<T>() {
     //~^ ERROR E0131
-    //~| NOTE main cannot have type parameters
 }
index 91ff6b85a42ce071efb3077f2e3a3bb46eb87ec7..25ccb344aba34805c55161cbb90c273cce12c298 100644 (file)
@@ -12,7 +12,6 @@
 
 #[start]
 fn f< T >() {} //~ ERROR E0132
-             //~| NOTE start function cannot have type parameters
 
 fn main() {
 }
index f60d9a5083f6fd526c9cdb9a810165b16398069b..2e54f65e7bff49400970f5febb7486c262b89bc6 100644 (file)
@@ -13,5 +13,4 @@
 fn main() {
     f();
     //~^ ERROR E0133
-    //~| NOTE call to unsafe function
 }
index f45afc9f37bd51f0cb816552f5305e0c9a58af31..067ebcc727cea79d074d3039fa9a7d6158eac53c 100644 (file)
@@ -11,9 +11,8 @@
 #![feature(main)]
 
 #[main]
-fn foo() {} //~ NOTE first #[main] function
+fn foo() {}
 
 #[main]
 fn f() {}
 //~^ ERROR E0137
-//~| NOTE additional #[main] function
index 11d90658ab26a710394018faf64437376534dab4..856616c857085501bd341bf109575d65a9eee582 100644 (file)
@@ -12,9 +12,7 @@
 
 #[start]
 fn foo(argc: isize, argv: *const *const u8) -> isize { 0 }
-//~^ NOTE previous `start` function here
 
 #[start]
 fn f(argc: isize, argv: *const *const u8) -> isize { 0 }
 //~^ ERROR E0138
-//~| NOTE multiple `start` functions
index 0b63d7c3f85c71873a0a405258513b483ac72483..e13b0af6f7977436c43684f1ee62b89eb1582cea 100644 (file)
@@ -13,7 +13,6 @@
 fn main() {
     let irr = Irrefutable(0);
     if let Irrefutable(x) = irr { //~ ERROR E0162
-        //~| NOTE irrefutable pattern
         println!("{}", x);
     }
 }
index cf6cf15115ac0a1dd88b027143557150a9a02d8b..a7f10ddb5a7f83cefc2f8e70aabfa361228bbcf7 100644 (file)
@@ -18,7 +18,6 @@ impl Foo {
 fn bar(foo: Foo) -> u32 {
     match foo {
         Foo::B(i) => i, //~ ERROR E0164
-                        //~| NOTE not a tuple variant or struct
     }
 }
 
index 9ec2eeba5cc5f5a0ff49c0383d0dc1de0bd9466e..5d72d00ffe8765bb7ade9cda1f14eb4afa4ccd2d 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 #[derive(Copy)] //~ ERROR E0184
-                //~| NOTE Copy not allowed on types with destructors
-                //~| NOTE in this expansion of #[derive(Copy)]
 struct Foo;
 
 impl Drop for Foo {
index dcfe441ab0d00ca0287fde3100f1a3ea3cd4b19c..489ebb033f84e8133c98961750ff7530ba4878dc 100644 (file)
@@ -13,7 +13,6 @@ trait Trait {
 }
 
 type Foo = Trait; //~ ERROR E0191
-                  //~| NOTE missing associated type `Bar` value
 
 fn main() {
 }
index 6b1f718dd76c5542e4cf5bf58edc078c32e75308..17e0751859d9ffd0425186212c3090ce805f76ee 100644 (file)
@@ -8,11 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-trait Foo<T> { //~ NOTE first `T` declared here
+trait Foo<T> {
     fn do_something(&self) -> T;
     fn do_something_else<T: Clone>(&self, bar: T);
     //~^ ERROR E0194
-    //~| NOTE shadows another type parameter
 }
 
 fn main() {
index 1131e8e1b01cae69a1c19043442f149ce935e3c7..da0370b301b5b51d4054053c5d18fe8525785895 100644 (file)
 
 impl Copy for Foo { }
 //~^ ERROR the trait `Copy` may not be implemented for this type
-//~| NOTE type is not a structure or enumeration
 //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
-//~| NOTE impl doesn't use types inside crate
-//~| NOTE the impl does not reference any types defined in this crate
-//~| NOTE define and implement a trait or new type instead
 
 #[derive(Copy, Clone)]
 struct Bar;
 
 impl Copy for &'static Bar { }
 //~^ ERROR the trait `Copy` may not be implemented for this type
-//~| NOTE type is not a structure or enumeration
 
 fn main() {
 }
index fbddb81d7c70be18bbdd6dc437d796b620802f46..bd87dbaf786a518407bc28a07c8e5c8528e5ef8f 100644 (file)
@@ -11,7 +11,6 @@
 struct Foo;
 
 impl<T: Default> Foo { //~ ERROR E0207
-                       //~| NOTE unconstrained type parameter
     fn get(&self) -> T {
         <T as Default>::default()
     }
index e9c3cb72c11b07a7075c5a905ea4f120b2a77a0b..2b090391c743b02dcd22b13fae3bb4f41daf4ee8 100644 (file)
@@ -11,5 +11,4 @@
 fn main() {
     let v: Vec(&str) = vec!["foo"];
     //~^ ERROR E0214
-    //~| NOTE only traits may use parentheses
 }
index c5a1824514d74ad6b7790d690bc5eb168062c3dc..2866ffcd637921301f86c128bdabe3996441b8cb 100644 (file)
@@ -13,8 +13,6 @@ trait Trait {
 }
 
 type Foo = Trait<F=i32>; //~ ERROR E0220
-                         //~| NOTE associated type `F` not found
                          //~| ERROR E0191
-                         //~| NOTE missing associated type `Bar` value
 fn main() {
 }
index aed2b4084e8103f3e4fb19ac192ba74d2d5db2f5..99092465b0ae75e3dc9331bc020bd94dc81dfe98 100644 (file)
@@ -12,27 +12,24 @@ trait T1 {}
 trait T2 {}
 
 trait Foo {
-    type A: T1; //~ NOTE: ambiguous `A` from `Foo`
+    type A: T1;
 }
 
 trait Bar : Foo {
-    type A: T2; //~ NOTE: ambiguous `A` from `Bar`
+    type A: T2;
     fn do_something() {
         let _: Self::A;
         //~^ ERROR E0221
-        //~| NOTE ambiguous associated type `A`
     }
 }
 
 trait T3 {}
 
 trait My : std::str::FromStr {
-    type Err: T3; //~ NOTE: ambiguous `Err` from `My`
+    type Err: T3;
     fn test() {
         let _: Self::Err;
         //~^ ERROR E0221
-        //~| NOTE ambiguous associated type `Err`
-        //~| NOTE associated type `Self` could derive from `std::str::FromStr`
     }
 }
 
index 56057b372599dc284593b08489ae84eeab283dd1..0683197b2b67084702f9f3ea15404e85c177105d 100644 (file)
@@ -13,6 +13,4 @@
 fn main() {
     let foo: MyTrait::X;
     //~^ ERROR ambiguous associated type
-    //~| NOTE ambiguous associated type
-    //~| NOTE specify the type using the syntax `<Type as MyTrait>::X`
 }
index c2f610ecd2816aed6fbe3b0d5a16fb639abe39da..6c77443c5ede9bfdd928e08aeebbc26824576c09 100644 (file)
@@ -11,5 +11,4 @@
 fn main() {
     let _: Box<std::io::Read + std::io::Write>;
     //~^ ERROR only auto traits can be used as additional traits in a trait object [E0225]
-    //~| NOTE non-auto additional trait
 }
index d15f9937f13828faff915c8a195fc907cd7b12b9..b70fb092a54103af875f9665c98c258783f8ed76 100644 (file)
@@ -22,7 +22,6 @@ fn boo(&self) -> usize { 42 }
 
 fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
 //~^ ERROR associated type bindings are not allowed here [E0229]
-//~| NOTE associated type not allowed here
 
 fn main() {
 }
index a33120bbebd2321d47093e20daddb732ca31bea2..04657c65c8e450280f94d612b5f782b88a19634d 100644 (file)
@@ -12,8 +12,6 @@
 
 #[rustc_on_unimplemented]
 //~^ ERROR E0232
-//~| NOTE value required here
-//~| NOTE eg `#[rustc_on_unimplemented = "foo"]`
 trait Bar {}
 
 fn main() {
index d20435a37ff5bf08913bc6c72e87ddc8fc1d3024..615ce0b5d4265028f1f0212c1f17fcd530d2c5a5 100644 (file)
@@ -11,7 +11,6 @@
 struct Foo<T> { x: T }
 struct Bar { x: Foo }
                 //~^ ERROR wrong number of type arguments: expected 1, found 0 [E0243]
-                //~| NOTE expected 1 type argument
 
 fn main() {
 }
index 02d4b337894b27b2f7422a8b6834d6b1771e1ae4..9a78b3139d0643c2a798f90f57da23e368bb0d3b 100644 (file)
@@ -11,7 +11,6 @@
 struct Foo { x: bool }
 struct Bar<S, T> { x: Foo<S, T> }
                       //~^ ERROR wrong number of type arguments: expected 0, found 2 [E0244]
-                      //~| NOTE expected no type arguments
 
 
 fn main() {
index 5a06c01241b4bf7477b5738a59c41ae14c692091..186d9019aaeba73b5c1672b56909b7a4079e5458 100644 (file)
@@ -16,6 +16,5 @@ pub trait MyTrait {
 
 use foo::MyTrait::do_something;
     //~^ ERROR E0253
-    //~|NOTE cannot be imported directly
 
 fn main() {}
index 996a6b97cd9989c9a25cb654fe59fc3571d6225e..46c74fe3735a36f0b1d6e79c0571a7c8e7e7a7c5 100644 (file)
@@ -12,7 +12,6 @@
 #![allow(unused_extern_crates)]
 
 extern crate alloc;
-//~^ NOTE previous import of the extern crate `alloc` here
 
 mod foo {
     pub trait alloc {
@@ -22,7 +21,5 @@ pub trait alloc {
 
 use foo::alloc;
 //~^ ERROR E0254
-//~| NOTE `alloc` reimported here
-//~| NOTE `alloc` must be defined only once in the type namespace of this module
 
 fn main() {}
index e125cc0c19c373deedf956e4151fd1e3edb407e1..5a47541c708bec187ee40a29793867aec21166f8 100644 (file)
 #![allow(unused_extern_crates)]
 
 extern crate alloc;
-//~^ NOTE previous import of the extern crate `alloc` here
 
 extern crate libc as alloc;
 //~^ ERROR E0259
-//~| NOTE `alloc` reimported here
-//~| NOTE `alloc` must be defined only once in the type namespace of this module
-//~| NOTE You can use `as` to change the binding name of the import
 
 fn main() {}
index ad8888e58f79ad4176b537850c836d2933d77b77..1b01bb12203d3949a5a85d6be3951bfbf8cd97fc 100644 (file)
 #![allow(unused_extern_crates)]
 
 extern crate alloc;
-//~^ NOTE previous import of the extern crate `alloc` here
 
 mod alloc {
 //~^ ERROR the name `alloc` is defined multiple times [E0260]
-//~| NOTE `alloc` redefined here
-//~| NOTE `alloc` must be defined only once in the type namespace of this module
     pub trait MyTrait {
         fn do_something();
     }
index 11a8ff443a8459d452a2d53b89c633b0a4302e7b..722f1c25e07d17365674d2fff578e2f9b5dcdd2e 100644 (file)
@@ -10,8 +10,6 @@
 
 fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) {
     //~^ ERROR E0263
-    //~| NOTE declared twice
-    //~| NOTE previous declaration here
 }
 
 fn main() {}
index b58fbce8bc648c2a92b4c2705b18605a34a153de..6287256e866c9e948cc79d1291188979c932f372 100644 (file)
@@ -10,5 +10,4 @@
 
 fn main() {
     let w = || { break; }; //~ ERROR E0267
-            //~| NOTE cannot break inside of a closure
 }
index 3313e07667a1ca2d6f0a93cce945fa4a13c584f2..41e88e2f492a9c77a8441ddcaaa368dc07c1faff 100644 (file)
@@ -10,5 +10,4 @@
 
 fn main() {
     break; //~ ERROR E0268
-    //~| NOTE cannot break outside of a loop
 }
index 816d35295542785cc0c5ac9fb8c8c75299c2ca88..4d1c50002a39c1f6e6b53dbdcd10d1a03fb00329 100644 (file)
@@ -25,9 +25,4 @@ fn is_send<T: Send>() { }
 fn main() {
     is_send::<Foo>();
     //~^ ERROR the trait bound `*const u8: std::marker::Send` is not satisfied in `Foo`
-    //~| NOTE: `*const u8` cannot be sent between threads safely
-    //~| NOTE: required because it appears within the type `Baz`
-    //~| NOTE: required because it appears within the type `Bar`
-    //~| NOTE: required because it appears within the type `Foo`
-    //~| NOTE: required by `is_send`
 }
index 8b34936419db587c2bf844fa54cb23069ccf38b2..784f7465d439b293308922be286bd6ddaa8a7bf2 100644 (file)
@@ -20,13 +20,8 @@ fn some_func<T: Foo>(foo: T) {
 
 fn f(p: Path) { }
 //~^ ERROR the trait bound `[u8]: std::marker::Sized` is not satisfied in `std::path::Path`
-//~| NOTE `[u8]` does not have a constant size known at compile-time
-//~| NOTE required because it appears within the type `std::path::Path`
-//~| NOTE all local variables must have a statically known size
 
 fn main() {
     some_func(5i32);
     //~^ ERROR the trait bound `i32: Foo` is not satisfied
-    //~| NOTE the trait `Foo` is not implemented for `i32`
-    //~| NOTE required by `some_func`
 }
index 436e4c1f9d22e6b5c047e4e08046f0fdfddc9293..afe4444c7afdfa4c265623269b4edb48a923c985 100644 (file)
@@ -13,5 +13,4 @@ fn main() {
 
     for Some(x) in xs {}
     //~^ ERROR E0005
-    //~| NOTE pattern `None` not covered
 }
index b7872509f5408cdf929df0fa61d3532e211405dd..06e98289b0d57ab20c9b9aa481b16713fd00479d 100644 (file)
@@ -12,7 +12,6 @@ fn main() {
     match Some(()) {
         None => { },
         option if option.take().is_none() => {}, //~ ERROR E0301
-        //~| NOTE borrowed mutably in pattern guard
         Some(_) => { }
     }
 }
index 5ad74fd6cab053ca42520907ea8e3759640e425c..6a5ad40b10907222bad96a92c9b4096b46d019d4 100644 (file)
@@ -12,7 +12,6 @@ fn main() {
     match Some(()) {
         None => { },
         option if { option = None; false } => { }, //~ ERROR E0302
-        //~| NOTE assignment in pattern guard
         Some(_) => { }
     }
 }
index e631fe2a8a7ccf834f66560db9ec310bbed647ed..6027414fdbd4b197ca7fea0d9fc3b4736284814e 100644 (file)
@@ -12,10 +12,7 @@ fn main() {
     match Some("hi".to_string()) {
         ref op_string_ref @ Some(s) => {},
         //~^ ERROR pattern bindings are not allowed after an `@` [E0303]
-        //~| NOTE not allowed after `@`
         //~| ERROR E0009
-        //~| NOTE by-move pattern here
-        //~| NOTE both by-ref and by-move used
         None => {},
     }
 }
index ea5fd6ed4772f044e7603b5e01c41dc239885670..a1efcde42b05bdc9054a75624c2ecf2cf06827f4 100644 (file)
@@ -14,7 +14,5 @@ mod foo {
 
 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() {}
index 29d8e920c4ce767ef0ce81642cc208c14212444b..094ed35cc2d6dfd078a1b81bf08f7bfc05a45f2b 100644 (file)
@@ -21,8 +21,5 @@ struct Foo<T: ?Sized, U: ?Sized> {
 
 impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
 //~^ ERROR E0375
-//~| NOTE requires multiple coercions
-//~| NOTE `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced
-//~| NOTE currently, 2 fields need coercions: b (T to U), c (U to T)
 
 fn main() {}
index 584dfd5fa440cd4a8f7436b98971f5487c830d8b..445831bf8d7f7d4ba885c791d534d8cab90f6191 100644 (file)
@@ -16,6 +16,5 @@ fn main() {
     let mut fancy = FancyNum{ num: 5 };
     let fancy_ref = &(&mut fancy);
     fancy_ref.num = 6; //~ ERROR E0389
-                       //~^ NOTE assignment into an immutable reference
     println!("{}", fancy_ref.num);
 }
index a21e500e519bb4cfb7ded1d34c50b8c5ca26e6f9..4c3efcf4e8d75637c03b00e46dfdc6c9a562d577 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 enum Foo<T> { Bar } //~ ERROR E0392
-                    //~| NOTE unused type parameter
 
 fn main() {
 }
index f045e873519cd44f6d8286737040676974a5fdee..9165bc2837b517968d34c3921a97c16aed798569 100644 (file)
@@ -12,8 +12,6 @@ trait A<T=Self> {}
 
 fn together_we_will_rule_the_galaxy(son: &A) {}
 //~^ ERROR E0393
-//~| NOTE missing reference to `T`
-//~| NOTE because of the default `Self` reference, type parameters must be specified on object types
 
 fn main() {
 }
index c7d5665cd2c58482f12a3ff9a35cd77ddc1a3bdd..dae8e14c5ef181e5a70fdf0a0aa080310c5aadfb 100644 (file)
@@ -13,8 +13,6 @@
 static A: u32 = 0;
 static B: u32 = A;
 //~^ ERROR E0394
-//~| NOTE referring to another static by value
-//~| NOTE use the address-of operator or a constant instead
 
 fn main() {
 }
index 98f08cd68c22de81691347133e21ccd16e1d4384..00008ea6b6f376a08a4460e2a8e1b2d10befb2e7 100644 (file)
@@ -12,6 +12,5 @@
 static BAR: i32 = 42;
 
 static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
-                   //~| NOTE comparing raw pointers in static
 fn main() {
 }
index 47080fb6e9ef754f64b7fd2d86d59c8f1d68b280..7f34acdfb90075f32480553b877b6573c223ab06 100644 (file)
@@ -11,7 +11,6 @@
 const REG_ADDR: *const u8 = 0x5f3759df as *const u8;
 
 const VALUE: u8 = unsafe { *REG_ADDR }; //~ ERROR E0396
-                  //~| NOTE dereference of raw pointer in constant
 
 fn main() {
 }
index cd8532fc4c305bebf8cb399d9747010fb3f4d651..6a68013dc6ffe3c675751599d2b55c8625370d06 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
-                            //~| NOTE already used
-                            //~| NOTE first use of `T`
 
 fn main() {
 }
index c207dbfca5565753f8f79b8a705af0e5b6e4a404..41d8b4513ce53ce2c8cf4e85d3bd2153639548e7 100644 (file)
@@ -18,7 +18,6 @@ impl Foo for Bar {
     fn a() {}
     fn b() {}
     //~^ ERROR E0407
-    //~| NOTE not a member of trait `Foo`
 }
 
 fn main() {
index ce77a537e263ddd220e52ec75b8b74a38a88f99e..8ddeb20afdc1e1497b372edcc4683ccd18942c49 100644 (file)
@@ -13,7 +13,6 @@ fn main() {
 
     match x {
         Some(y) | None => {} //~  ERROR variable `y` is not bound in all patterns
-        _ => ()              //~| NOTE pattern doesn't bind `y`
-                             //~| NOTE variable not in all patterns
+        _ => ()
     }
 }
index be21421cb0781a74eff288ce81f406e242a3b0b4..d6261d3a74e1554a8ce6ecdea01f1bad2734c148 100644 (file)
@@ -12,6 +12,5 @@ fn main () {
     loop {
         break 'a;
         //~^ ERROR E0426
-        //~| NOTE undeclared label `'a`
     }
 }
index 4042219b5cc1a54528541fdcfb6e659528b0912c..3c709f3a399227fecda203ec702ca83b242d55ab 100644 (file)
@@ -10,8 +10,6 @@
 
 struct Bar; //~ previous definition of the type `Bar` here
 struct Bar; //~ ERROR E0428
-            //~| NOTE `Bar` redefined here
-            //~| NOTE `Bar` must be defined only once in the type namespace of this module
 
 fn main () {
 }
index 50a6d174e222a55ed6bc8afeeea7f1237cd56ff5..5246fda6aaf6fb20f7ab5d1eed02af6d54a8568a 100644 (file)
@@ -11,5 +11,4 @@
 fn main () {
     let foo = 42u32;
     let _: [u8; foo]; //~ ERROR E0435
-    //~| NOTE non-constant value
 }
index 62ee8dc3464928fa3248504b3f0a5a7ce6cebe28..7440a82773e7af4675c6cd91096b8dc38054e1e3 100644 (file)
@@ -12,7 +12,6 @@ trait Foo {}
 
 impl Foo for i32 {
     type Bar = bool; //~ ERROR E0437
-    //~| NOTE not a member of trait `Foo`
 }
 
 fn main () {
index 99e0dbbcea804b5abc920dc89a84912397f0a84e..61d25134993f03049be0054dab1d161fb23908a7 100644 (file)
@@ -13,7 +13,6 @@ trait Bar {}
 
 impl Bar for i32 {
     const BAR: bool = true; //~ ERROR E0438
-        //~| NOTE not a member of trait `Bar`
 }
 
 fn main () {
index efef8305e53547734b7fd1255dd9c809bcaeff79..a1447e7ebcddca230ab2cc8b962bddfafa4cc3b2 100644 (file)
@@ -14,12 +14,9 @@ fn dummy(&self) { }
 
 pub trait Bar : Foo {}
 //~^ ERROR private trait `Foo` in public interface [E0445]
-//~| NOTE private trait can't be public
 pub struct Bar2<T: Foo>(pub T);
 //~^ ERROR private trait `Foo` in public interface [E0445]
-//~| NOTE private trait can't be public
 pub fn foo<T: Foo> (t: T) {}
 //~^ ERROR private trait `Foo` in public interface [E0445]
-//~| NOTE private trait can't be public
 
 fn main() {}
index 493a2722617762163b66b032dd0f84779d28c39b..c576661828471abf71e304c1cae2e8c69de94260 100644 (file)
@@ -12,7 +12,6 @@ mod Foo {
     struct Bar(u32);
 
     pub fn bar() -> Bar { //~ ERROR E0446
-                          //~| NOTE can't leak private type
         Bar(0)
     }
 }
index 0b3fdb9e6abe69ba77e1109f5b94cdb4e870cd90..ac365db33e5cdadc546c7f4e7cbe4b377b75a652 100644 (file)
@@ -15,13 +15,9 @@ trait Foo {
 }
 
 pub impl Bar {} //~ ERROR E0449
-                //~| NOTE `pub` not needed here
-                //~| NOTE place qualifiers on individual impl items instead
 
 pub impl Foo for Bar { //~ ERROR E0449
-                       //~| NOTE `pub` not needed here
     pub fn foo() {} //~ ERROR E0449
-                    //~| NOTE `pub` not needed here
 }
 
 fn main() {
index ace96c9983e66612097228f6a949778e797cf0f0..af4e7d628bb25e331e2493e5c8ae16586977bdf5 100644 (file)
@@ -22,10 +22,8 @@ pub struct FooTuple (
 
 fn pat_match(foo: Bar::Foo) {
     let Bar::Foo{a:a, b:b} = foo; //~ ERROR E0451
-                                  //~^ NOTE field `b` is private
 }
 
 fn main() {
     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
-                                    //~^ NOTE field `b` is private
 }
index 6fed3dca94ef110f8f2f7fe5c08a8c7906d41dfb..8e51b84bab8e600895b761c68a873277986a52bf 100644 (file)
@@ -9,10 +9,8 @@
 // except according to those terms.
 
 #![forbid(non_snake_case)]
-//~^ NOTE `forbid` level set here
 
 #[allow(non_snake_case)]
 //~^ ERROR allow(non_snake_case) overruled by outer forbid(non_snake_case)
-//~| NOTE overruled by previous forbid
 fn main() {
 }
index 39887927c885fe79ea604300065112683b57ad6f..afd0f5f5e461ef59d31fc22978ec3cd04310753d 100644 (file)
@@ -10,7 +10,6 @@
 
 #[link(name = "")] extern {}
 //~^ ERROR E0454
-//~| NOTE empty name given
 
 fn main() {
 }
index e87158ae3b03fa9cb74d00b06e4bc302909b320b..fea27ef8115866cf925cd483753b352b7bf3f00b 100644 (file)
@@ -9,9 +9,7 @@
 // except according to those terms.
 
 #[link(kind = "wonderful_unicorn")] extern {} //~ ERROR E0458
-                                              //~| NOTE unknown kind
                                               //~| ERROR E0459
-                                              //~| NOTE missing `name` argument
 
 fn main() {
 }
index 41376bd9ef5a206579d8ca5070419fba8ee479be..dc7ac714f22395feddc48a4e5f71dc1ef7553871 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #[link(kind = "dylib")] extern {} //~ ERROR E0459
-                                  //~| NOTE missing `name` argument
 
 fn main() {
 }
index 3ce5b83e89fd45a67b07fa0413c9038c3d247172..aae83975b22f8a81cf119a322bcccc1bb6222d04 100644 (file)
@@ -11,7 +11,6 @@
 #![feature(plugin)]
 #![plugin(cookie_monster)]
 //~^ ERROR E0463
-//~| NOTE can't find crate
 extern crate cake_is_a_lie;
 
 fn main() {
index 8aeeeebcb56768a03dbb53a4a4afa59173c1eaf3..4ca3cd9c13da60a26586e54da1fe11ada301b509 100644 (file)
@@ -13,9 +13,7 @@ struct Foo<'a> {
 }
 
 impl<'a> Foo<'a> {
-   //~^  NOTE first declared here
     fn f<'a>(x: &'a i32) { //~ ERROR E0496
-       //~^ NOTE lifetime 'a already in scope
     }
 }
 
index 7feda670f52a3aa85f111b501b6a9cebb671c9c9..561223ccdf11e8755cf58417f4102f78ae759ebe 100644 (file)
@@ -9,16 +9,16 @@
 // except according to those terms.
 
 #[repr(C)] //~ ERROR: E0517
-type Foo = u8; //~ NOTE: not a struct, enum or union
+type Foo = u8;
 
 #[repr(packed)] //~ ERROR: E0517
-enum Foo2 {Bar, Baz} //~ NOTE: not a struct
+enum Foo2 {Bar, Baz}
 
 #[repr(u8)] //~ ERROR: E0517
-struct Foo3 {bar: bool, baz: bool} //~ NOTE: not an enum
+struct Foo3 {bar: bool, baz: bool}
 
 #[repr(C)] //~ ERROR: E0517
-impl Foo3 { //~ NOTE: not a struct, enum or union
+impl Foo3 {
 }
 
 fn main() {
index 63d40db0049da736155c9ee6d85d58b41234d6e5..6d5b6e48e0dabc834af58bac0f50aff8f4781e5c 100644 (file)
@@ -9,10 +9,10 @@
 // except according to those terms.
 
 #[inline(always)] //~ ERROR: E0518
-struct Foo;       //~ NOTE: not a function
+struct Foo;
 
 #[inline(never)] //~ ERROR: E0518
-impl Foo {       //~ NOTE: not a function
+impl Foo {
 }
 
 fn main() {
index ff6152d377f670b24a87324a55e7d5946d141fe8..eae5b11a8190492c18bf083b829f595b6d82a05a 100644 (file)
@@ -19,15 +19,12 @@ impl<T> SpaceLlama for T {
 }
 
 impl<T: Clone> SpaceLlama for T {
-//~^ NOTE parent `impl` is here
     fn fly(&self) {}
 }
 
 impl SpaceLlama for i32 {
     default fn fly(&self) {}
     //~^ ERROR E0520
-    //~| NOTE cannot specialize default item `fly`
-    //~| NOTE `fly` in the parent `impl` must be marked `default`
 }
 
 fn main() {
index 0b664094a40d7f0d1c5d9a8c8e6d5359b76fcd96..67d222e867e638dc2c3dfb975aea834a6c321bb1 100644 (file)
@@ -15,7 +15,6 @@ fn main() {
     match r {
         &[a, b] => {
             //~^ ERROR E0527
-            //~| NOTE expected 4 elements
             println!("a={}, b={}", a, b);
         }
     }
index e912650f112929d5b228a37efbfdfeab875480d1..e2aa2c067cbcd1528d12bbdeb5a535e882820d9f 100644 (file)
@@ -15,7 +15,6 @@ fn main() {
     match r {
         &[a, b, c, rest..] => {
         //~^ ERROR E0528
-        //~| NOTE pattern cannot match array of 2 elements
         }
     }
 }
index 18d3e68816aad61c418eb008282db68e39740ab9..5262ad7b716f5e25be27bb6842a9981dba335ec9 100644 (file)
@@ -15,7 +15,6 @@ fn main() {
     match r {
         [a, b] => {
         //~^ ERROR E0529
-        //~| NOTE pattern cannot match with input type `f32`
         }
     }
 }
index 0c2ca69849166241c117ce70f169a9414b3a2975..64a6ee4cf5872b658cfe88a4a4d8ef666b0c4cfb 100644 (file)
@@ -10,7 +10,6 @@
 
 #[export_name]
 //~^ ERROR E0558
-//~| NOTE did you mean #[export_name="*"]?
 
 pub fn something() {}
 
index e8b0915d2b533fa24e339911715073f2b5cc2dd1..da0f692cc2839c04e57a11fd93b3aedd54e10442 100644 (file)
@@ -15,6 +15,4 @@ enum Field {
 fn main() {
     let s = Field::Fool { joke: 0 };
     //~^ ERROR E0559
-    //~| NOTE `Field::Fool` does not have this field
-    //~| NOTE available fields are: `x`
 }
index 955ef7ca99ceb51df2d73999c0aa3a94b41a81e0..bbb7f08d62e35ded215a12113c8b4522185525de 100644 (file)
@@ -15,6 +15,4 @@ struct Simba {
 fn main() {
     let s = Simba { mother: 1, father: 0 };
     //~^ ERROR E0560
-    //~| NOTE `Simba` does not have this field
-    //~| NOTE available fields are: `mother`
 }
index add3fd8fd8ac28c1b81735672fa0b629a9a663bf..4b5b8beb36865dedcf38b33b40756c7f3464d530 100644 (file)
@@ -11,9 +11,7 @@
 fn main() {
     let x = 0u8;
     x as Vec<u8>; //~ ERROR E0605
-                  //~| NOTE an `as` expression can only be used to convert between primitive types
 
     let v = 0 as *const u8;
     v as &u8; //~ ERROR E0605
-              //~| NOTE an `as` expression can only be used to convert between primitive types
 }
index 1ba2e8e2e56139ace7fa9a53369e63feae8a16de..f28ac200dea5a29fe6be2ec6fafb8e8028fb4729 100644 (file)
@@ -14,7 +14,6 @@ enum X {
 
 fn main() {
     X::Entry(); //~ ERROR expected function, found `X::Entry` [E0618]
-                //~| HELP did you mean to write `X::Entry`?
     let x = 0i32;
     x(); //~ ERROR expected function, found `i32` [E0618]
 }