Update tests
This commit is contained in:
parent
910bf840cc
commit
b1d872b38e
@ -6,3 +6,5 @@ LL | #[derive(Foo, Bar)] //~ ERROR proc-macro derive panicked
|
||||
|
|
||||
= help: message: lolnope
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -6,3 +6,5 @@ LL | #[derive(A)]
|
||||
|
|
||||
= help: message: nope!
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -4,5 +4,6 @@ error[E0404]: expected trait, found type alias `Bar`
|
||||
LL | impl Bar for Baz { } //~ ERROR expected trait, found type alias
|
||||
| ^^^ type aliases cannot be used for traits
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0404`.
|
||||
|
@ -9,3 +9,5 @@ LL | _
|
||||
LL | underscore!();
|
||||
| -------------- in this macro invocation
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -9,3 +9,5 @@ LL | recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
|
||||
|
|
||||
= help: consider adding a `#![recursion_limit="20"]` attribute to your crate
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -10,5 +10,6 @@ error[E0404]: expected trait, found struct `Foo`
|
||||
LL | fn baz<T: Foo>(_: T) {} //~ ERROR E0404
|
||||
| ^^^ not a trait
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0404`.
|
||||
|
@ -4,5 +4,6 @@ error[E0405]: cannot find trait `SomeTrait` in this scope
|
||||
LL | impl SomeTrait for Foo {} //~ ERROR E0405
|
||||
| ^^^^^^^^^ not found in this scope
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0405`.
|
||||
|
@ -4,3 +4,5 @@ error: compilation successful
|
||||
LL | fn main() {} //~ ERROR compilation successful
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -20,3 +20,5 @@ error: compilation successful
|
||||
LL | fn main() {} //~ ERROR compilation successful
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -1316,3 +1316,5 @@ LL | | println!("Hello World");
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -6,3 +6,5 @@ LL | | println!("Hello World");
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -24,5 +24,7 @@ help: possible candidate is found in another module, you can import it into scop
|
||||
LL | use std::fmt::Debug;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
Some errors occurred: E0405, E0425.
|
||||
For more information about an error, try `rustc --explain E0405`.
|
||||
|
@ -89,3 +89,5 @@ error: expected type, found `4`
|
||||
LL | println!("{}", a: &mut 4); //~ ERROR expected type, found `4`
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
|
@ -13,3 +13,5 @@ LL | bar(baz: $rest)
|
||||
LL | foo!(true); //~ ERROR expected type, found keyword
|
||||
| ^^^^ expecting a type here because of type ascription
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -22,3 +22,5 @@ LL | | let _y = bar();
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -70,3 +70,5 @@ LL | | foo();
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -73,3 +73,5 @@ LL | | foo();
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -108,3 +108,5 @@ LL | | foo();
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -14,3 +14,5 @@ LL | | foo();
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -43,3 +43,5 @@ LL | () => ( i ; typeof ); //~ ERROR expected expression, found reserved k
|
||||
LL | m!();
|
||||
| ----- in this macro invocation
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
@ -4,5 +4,6 @@ error[E0433]: failed to resolve. Use of undeclared type or module `m`
|
||||
LL | foo!(m::m2::A); //~ ERROR failed to resolve
|
||||
| ^ Use of undeclared type or module `m`
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
||||
|
@ -45,3 +45,5 @@ LL | my_recursive_macro!();
|
||||
= note: expanding `my_recursive_macro! { }`
|
||||
= note: to `my_recursive_macro ! ( ) ;`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -6,3 +6,5 @@ LL | let x = r##"lol"#;
|
||||
|
|
||||
= note: this raw string should be terminated with `"##`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -45,5 +45,7 @@ help: possible candidate is found in another module, you can import it into scop
|
||||
LL | use std::ops::Div;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
Some errors occurred: E0405, E0412.
|
||||
For more information about an error, try `rustc --explain E0405`.
|
||||
|
@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
|
||||
LL | use foo::bar::T;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0405`.
|
||||
|
@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
|
||||
LL | use issue_21221_3::outer::OuterTrait;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0405`.
|
||||
|
@ -8,5 +8,6 @@ help: possible candidate is found in another module, you can import it into scop
|
||||
LL | use issue_21221_4::T;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0405`.
|
||||
|
@ -8,5 +8,6 @@ help: possible better candidate is found in another module, you can import it in
|
||||
LL | use issue_3907::Foo;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0404`.
|
||||
|
@ -13,5 +13,7 @@ LL | impl K for isize {} //~ ERROR expected trait, found type alias `K`
|
||||
| did you mean `I`?
|
||||
| type aliases cannot be used for traits
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors occurred: E0404, E0432.
|
||||
For more information about an error, try `rustc --explain E0404`.
|
||||
|
@ -10,5 +10,7 @@ error[E0404]: expected trait, found type alias `Typedef`
|
||||
LL | fn g<F:Typedef(isize) -> isize>(x: F) {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ type aliases cannot be used for traits
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors occurred: E0404, E0405.
|
||||
For more information about an error, try `rustc --explain E0404`.
|
||||
|
@ -1,2 +0,0 @@
|
||||
error: cannot continue compilation due to previous error
|
||||
|
@ -36,3 +36,5 @@ LL | | println!("{}", theTwo);
|
||||
LL | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -8,5 +8,6 @@ help: possible better candidate is found in another module, you can import it in
|
||||
LL | use std::ops::Add;
|
||||
|
|
||||
|
||||
error: cannot continue compilation due to previous error
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0404`.
|
||||
|
Loading…
Reference in New Issue
Block a user