mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
12 lines
200 B
Rust
12 lines
200 B
Rust
![]() |
#![feature(const_trait_bound_opt_out)]
|
||
|
#![feature(const_trait_impl)]
|
||
|
#![allow(incomplete_features)]
|
||
|
|
||
|
struct S;
|
||
|
trait T {}
|
||
|
|
||
|
impl ?const T for S {}
|
||
|
//~^ ERROR expected a trait, found type
|
||
|
|
||
|
fn main() {}
|