mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
10 lines
216 B
Rust
10 lines
216 B
Rust
#![feature(generic_const_exprs)]
|
|
#![allow(incomplete_features)]
|
|
|
|
pub struct Foo<T, const H: T>(T)
|
|
//~^ ERROR the type of const parameters must not depend on other generic parameters
|
|
where
|
|
[(); 1]:;
|
|
|
|
fn main() {}
|