mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
376 B
Rust
16 lines
376 B
Rust
// edition:2018
|
|
// revisions: full min
|
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
|
|
struct Foo;
|
|
|
|
impl<const H: feature> Foo {
|
|
//~^ ERROR: expected type, found built-in attribute `feature`
|
|
//~^^ ERROR: the const parameter `H` is not constrained by the impl trait, self type, or predicates
|
|
async fn biz() {}
|
|
}
|
|
|
|
fn main() {}
|