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 18:31:30 -06:00
#![feature(const_trait_impl)]
struct S;
trait T {}
2021-08-25 09:30:09 -05:00
impl ~const T for S {}
2020-01-02 18:31:30 -06:00
//~^ ERROR expected a trait, found type
fn main() {}