Skip to content

Commit

Permalink
Add a FIXME comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Aug 5, 2020
1 parent 788261d commit cc36c3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/test/ui/higher-rank-trait-bounds/issue-59311.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/higher-rank-trait-bounds/issue-59311.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: higher-ranked subtype error
--> $DIR/issue-59311.rs:13:9
--> $DIR/issue-59311.rs:17:9
|
LL | v.t(|| {});
| ^^^^^
Expand Down

0 comments on commit cc36c3d

Please sign in to comment.