Add FIXMEs

This commit is contained in:
Yuki Okushi 2020-03-09 16:50:46 +09:00
parent 579ce86d4b
commit ef98ec055e
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
8 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,5 @@
// Regression test for #57200
// FIXME: The error is temporary hack, we'll revisit here at some point.
#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

View File

@ -1,5 +1,5 @@
error: lifetimes in impl Trait types in bindings are not currently supported
--> $DIR/issue-57200.rs:10:12
--> $DIR/issue-57200.rs:11:12
|
LL | let f: impl Fn(&'a T) -> &'b T = |x| x;
| ^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -1,4 +1,5 @@
// Regression test for #57201
// FIXME: The error is temporary hack, we'll revisit here at some point.
#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

View File

@ -1,5 +1,5 @@
error: lifetimes in impl Trait types in bindings are not currently supported
--> $DIR/issue-57201.rs:10:13
--> $DIR/issue-57201.rs:11:13
|
LL | let f: &impl Fn(&'a T) -> &'b T = &|x| x;
| ^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -12,5 +12,6 @@ impl<T> Trait<T> for () {
}
fn main() {
let x: impl Trait<A> = (); //~ ERROR: opaque type expands to a recursive type
let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
//~^ ERROR: opaque type expands to a recursive type
}

View File

@ -1,7 +1,7 @@
error[E0720]: opaque type expands to a recursive type
--> $DIR/issue-60473.rs:15:12
|
LL | let x: impl Trait<A> = ();
LL | let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
| ^^^^^^^^^^^^^ expands to a recursive type
|
= note: type resolves to itself

View File

@ -4,7 +4,7 @@
#![allow(incomplete_features)]
pub fn run() {
let _foo: Box<impl Copy + '_> = Box::new(());
let _foo: Box<impl Copy + '_> = Box::new(()); // FIXME: The error doesn't much make sense.
//~^ ERROR: opaque type expands to a recursive type
}

View File

@ -1,7 +1,7 @@
error[E0720]: opaque type expands to a recursive type
--> $DIR/issue-67166.rs:7:19
|
LL | let _foo: Box<impl Copy + '_> = Box::new(());
LL | let _foo: Box<impl Copy + '_> = Box::new(()); // FIXME: The error doesn't much make sense.
| ^^^^^^^^^^^^^^ expands to a recursive type
|
= note: type resolves to itself