Add a FIXME comment

This commit is contained in:
Yuki Okushi 2020-08-06 05:21:03 +09:00
parent 788261d2d3
commit cc36c3d140
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
2 changed files with 5 additions and 1 deletions

View File

@ -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) {}
}

View File

@ -1,5 +1,5 @@
error: higher-ranked subtype error
--> $DIR/issue-59311.rs:13:9
--> $DIR/issue-59311.rs:17:9
|
LL | v.t(|| {});
| ^^^^^