diff options
Diffstat (limited to 'tests/ui/wf/issue-87495.rs')
-rw-r--r-- | tests/ui/wf/issue-87495.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/wf/issue-87495.rs b/tests/ui/wf/issue-87495.rs new file mode 100644 index 000000000..5aab74311 --- /dev/null +++ b/tests/ui/wf/issue-87495.rs @@ -0,0 +1,8 @@ +// Regression test for the ICE described in #87495. + +trait T { + const CONST: (bool, dyn T); + //~^ ERROR: the trait `T` cannot be made into an object [E0038] +} + +fn main() {} |