Add FIXMEs
This commit is contained in:
parent
579ce86d4b
commit
ef98ec055e
@ -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)]
|
||||
|
@ -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;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -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)]
|
||||
|
@ -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;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user