Skip to content

Commit ef98ec0

Browse files
committedMar 9, 2020
Add FIXMEs
1 parent 579ce86 commit ef98ec0

8 files changed

+9
-6
lines changed
 

‎src/test/ui/impl-trait/issue-57200.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Regression test for #57200
2+
// FIXME: The error is temporary hack, we'll revisit here at some point.
23

34
#![feature(impl_trait_in_bindings)]
45
#![allow(incomplete_features)]

‎src/test/ui/impl-trait/issue-57200.stderr

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

‎src/test/ui/impl-trait/issue-57201.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Regression test for #57201
2+
// FIXME: The error is temporary hack, we'll revisit here at some point.
23

34
#![feature(impl_trait_in_bindings)]
45
#![allow(incomplete_features)]

‎src/test/ui/impl-trait/issue-57201.stderr

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

‎src/test/ui/impl-trait/issue-60473.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ impl<T> Trait<T> for () {
1212
}
1313

1414
fn main() {
15-
let x: impl Trait<A> = (); //~ ERROR: opaque type expands to a recursive type
15+
let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
16+
//~^ ERROR: opaque type expands to a recursive type
1617
}

‎src/test/ui/impl-trait/issue-60473.stderr

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

‎src/test/ui/impl-trait/issue-67166.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![allow(incomplete_features)]
55

66
pub fn run() {
7-
let _foo: Box<impl Copy + '_> = Box::new(());
7+
let _foo: Box<impl Copy + '_> = Box::new(()); // FIXME: The error doesn't much make sense.
88
//~^ ERROR: opaque type expands to a recursive type
99
}
1010

‎src/test/ui/impl-trait/issue-67166.stderr

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

0 commit comments

Comments
 (0)
Please sign in to comment.