rust/tests/ui/wf/issue-87495.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
179 B
Rust
Raw Normal View History

2021-07-27 20:24:43 +00:00
// 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() {}