mirror of
https://github.com/italicsjenga/generic-const-exprs-panic-repro.git
synced 2024-10-17 00:31:30 +11:00
15 lines
325 B
Rust
15 lines
325 B
Rust
use library::*;
|
|
|
|
fn main() {
|
|
// this doesn't compile
|
|
let mut inner = ImplementsTraitOverConstGeneric::<4>;
|
|
|
|
// but this would
|
|
// let mut inner = NonTraitWithConstGeneric::<4>;
|
|
|
|
// if we don't call this function then it'll compile fine
|
|
inner.configure(&Config {
|
|
config: [0, 0, 0, 0],
|
|
});
|
|
}
|