rust/tests/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs

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

10 lines
130 B
Rust
Raw Normal View History

2020-01-02 16:31:30 -08:00
#![feature(const_trait_impl)]
struct S;
trait T {}
2021-08-25 14:30:09 +00:00
impl ~const T for S {}
2020-01-02 16:31:30 -08:00
//~^ ERROR expected a trait, found type
fn main() {}