Skip to content

Commit cc36c3d

Browse files
committed
Add a FIXME comment
1 parent 788261d commit cc36c3d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/test/ui/higher-rank-trait-bounds/issue-59311.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// rust-lang/rust/issues/71546#issuecomment-620638437
33
// as they seem to have the same cause.
44

5+
// FIXME: It's not clear that this code ought to report
6+
// an error, but the regression test is here to ensure
7+
// that it does not ICE. See discussion on #74889 for details.
8+
59
pub trait T {
610
fn t<F: Fn()>(&self, _: F) {}
711
}

src/test/ui/higher-rank-trait-bounds/issue-59311.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: higher-ranked subtype error
2-
--> $DIR/issue-59311.rs:13:9
2+
--> $DIR/issue-59311.rs:17:9
33
|
44
LL | v.t(|| {});
55
| ^^^^^

0 commit comments

Comments
 (0)