mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Clean up some bad ui testing annotations
This commit is contained in:
parent
1b198b3a19
commit
dc946649f5
@ -17,7 +17,6 @@ trait Yay<AdditionalValue> {
|
||||
|
||||
impl<'a> Yay<&'a ()> for () {
|
||||
type InnerStream<'s> = impl Stream<Item = i32> + 's;
|
||||
//^ ERROR does not fulfill the required lifetime
|
||||
fn foo<'s>() -> Self::InnerStream<'s> {
|
||||
()
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ struct Foo<'a>(&'a mut ());
|
||||
|
||||
impl Foo<'_> {
|
||||
type Fut<'a> = impl Future<Output = ()>;
|
||||
//^ ERROR: the type `&mut ()` does not fulfill the required lifetime
|
||||
|
||||
fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
|
||||
async { () }
|
||||
|
@ -1,18 +1,18 @@
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-90014-tait.rs:19:9
|
||||
--> $DIR/issue-90014-tait.rs:18:9
|
||||
|
|
||||
LL | type Fut<'a> = impl Future<Output = ()>;
|
||||
| ------------------------ the expected future
|
||||
...
|
||||
LL |
|
||||
LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
|
||||
| ------------- expected `Foo<'_>::Fut<'a>` because of return type
|
||||
LL | async { () }
|
||||
| ^^^^^^^^^^^^ expected future, found `async` block
|
||||
|
|
||||
= note: expected opaque type `Foo<'_>::Fut<'a>`
|
||||
found `async` block `[async block@$DIR/issue-90014-tait.rs:19:9: 19:21]`
|
||||
found `async` block `[async block@$DIR/issue-90014-tait.rs:18:9: 18:21]`
|
||||
note: this item must have the opaque type in its signature in order to be able to register hidden types
|
||||
--> $DIR/issue-90014-tait.rs:18:8
|
||||
--> $DIR/issue-90014-tait.rs:17:8
|
||||
|
|
||||
LL | fn make_fut<'a>(&'a self) -> Self::Fut<'a> {
|
||||
| ^^^^^^^^
|
||||
|
@ -8,7 +8,6 @@ extern crate internal_unstable;
|
||||
|
||||
struct Baz {
|
||||
#[allow_internal_unstable]
|
||||
//^ WARN `#[allow_internal_unstable]` is ignored on struct fields and match arms
|
||||
baz: u8,
|
||||
}
|
||||
|
||||
@ -50,7 +49,6 @@ fn main() {
|
||||
|
||||
match true {
|
||||
#[allow_internal_unstable]
|
||||
//^ WARN `#[allow_internal_unstable]` is ignored on struct fields and match arms
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0658]: use of unstable library feature 'function'
|
||||
--> $DIR/internal-unstable.rs:41:25
|
||||
--> $DIR/internal-unstable.rs:40:25
|
||||
|
|
||||
LL | pass_through_allow!(internal_unstable::unstable());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -7,7 +7,7 @@ LL | pass_through_allow!(internal_unstable::unstable());
|
||||
= help: add `#![feature(function)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'function'
|
||||
--> $DIR/internal-unstable.rs:43:27
|
||||
--> $DIR/internal-unstable.rs:42:27
|
||||
|
|
||||
LL | pass_through_noallow!(internal_unstable::unstable());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -15,7 +15,7 @@ LL | pass_through_noallow!(internal_unstable::unstable());
|
||||
= help: add `#![feature(function)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'function'
|
||||
--> $DIR/internal-unstable.rs:47:22
|
||||
--> $DIR/internal-unstable.rs:46:22
|
||||
|
|
||||
LL | println!("{:?}", internal_unstable::unstable());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -23,7 +23,7 @@ LL | println!("{:?}", internal_unstable::unstable());
|
||||
= help: add `#![feature(function)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'function'
|
||||
--> $DIR/internal-unstable.rs:49:10
|
||||
--> $DIR/internal-unstable.rs:48:10
|
||||
|
|
||||
LL | bar!(internal_unstable::unstable());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@ -31,7 +31,7 @@ LL | bar!(internal_unstable::unstable());
|
||||
= help: add `#![feature(function)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: use of unstable library feature 'function'
|
||||
--> $DIR/internal-unstable.rs:19:9
|
||||
--> $DIR/internal-unstable.rs:18:9
|
||||
|
|
||||
LL | internal_unstable::unstable();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -6,9 +6,13 @@ pub enum ErrorHandled {
|
||||
impl ErrorHandled {
|
||||
pub fn assert_reported(self) {
|
||||
match self {
|
||||
//~^ NOTE this delimiter might not be properly closed...
|
||||
ErrorHandled::Reported => {}}
|
||||
//^~ ERROR block is empty, you might have not meant to close it
|
||||
//~^ NOTE block is empty, you might have not meant to close it
|
||||
//~| NOTE as it matches this but it has different indentation
|
||||
ErrorHandled::TooGeneric => panic!(),
|
||||
}
|
||||
}
|
||||
} //~ ERROR unexpected closing delimiter: `}`
|
||||
}
|
||||
//~^ ERROR unexpected closing delimiter: `}`
|
||||
//~| NOTE unexpected closing delimiter
|
||||
|
@ -1,8 +1,9 @@
|
||||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/issue-70583-block-is-empty-2.rs:14:1
|
||||
--> $DIR/issue-70583-block-is-empty-2.rs:16:1
|
||||
|
|
||||
LL | match self {
|
||||
| - this delimiter might not be properly closed...
|
||||
LL |
|
||||
LL | ErrorHandled::Reported => {}}
|
||||
| --- ...as it matches this but it has different indentation
|
||||
| |
|
||||
|
@ -14,7 +14,6 @@ trait Trait {
|
||||
|
||||
impl Trait for bool {
|
||||
fn a<T: Bound>(&self, _: T) {}
|
||||
//^~ This gets rejected but should be accepted
|
||||
fn b<T>(&self, _: T) where T: Bound {}
|
||||
fn c<T: Bound>(&self, _: T) {}
|
||||
fn d<T>(&self, _: T) where T: Bound {}
|
||||
|
Loading…
Reference in New Issue
Block a user