Add a FIXME comment
This commit is contained in:
parent
788261d2d3
commit
cc36c3d140
@ -2,6 +2,10 @@
|
||||
// rust-lang/rust/issues/71546#issuecomment-620638437
|
||||
// as they seem to have the same cause.
|
||||
|
||||
// FIXME: It's not clear that this code ought to report
|
||||
// an error, but the regression test is here to ensure
|
||||
// that it does not ICE. See discussion on #74889 for details.
|
||||
|
||||
pub trait T {
|
||||
fn t<F: Fn()>(&self, _: F) {}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: higher-ranked subtype error
|
||||
--> $DIR/issue-59311.rs:13:9
|
||||
--> $DIR/issue-59311.rs:17:9
|
||||
|
|
||||
LL | v.t(|| {});
|
||||
| ^^^^^
|
||||
|
Loading…
x
Reference in New Issue
Block a user