]> git.lizzy.rs Git - rust.git/commitdiff
Add a FIXME comment
authorYuki Okushi <huyuumi.dev@gmail.com>
Wed, 5 Aug 2020 20:21:03 +0000 (05:21 +0900)
committerYuki Okushi <huyuumi.dev@gmail.com>
Wed, 5 Aug 2020 20:21:03 +0000 (05:21 +0900)
src/test/ui/higher-rank-trait-bounds/issue-59311.rs
src/test/ui/higher-rank-trait-bounds/issue-59311.stderr

index c2168510cf5b8af0a520be3dfd3b40359ce50b94..1e1241c7f83c54c767a4e2b5422ad0f5e1ff0bee 100644 (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) {}
 }
index e6488c337114ba6f89e283a8b562cc84d5815551..ca6326292672bad2768752986330e77f4ec7c219 100644 (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(|| {});
    |         ^^^^^