We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 788261d commit cc36c3dCopy full SHA for cc36c3d
src/test/ui/higher-rank-trait-bounds/issue-59311.rs
@@ -2,6 +2,10 @@
2
// rust-lang/rust/issues/71546#issuecomment-620638437
3
// as they seem to have the same cause.
4
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
+
9
pub trait T {
10
fn t<F: Fn()>(&self, _: F) {}
11
}
src/test/ui/higher-rank-trait-bounds/issue-59311.stderr
@@ -1,5 +1,5 @@
1
error: higher-ranked subtype error
- --> $DIR/issue-59311.rs:13:9
+ --> $DIR/issue-59311.rs:17:9
|
LL | v.t(|| {});
| ^^^^^
0 commit comments