mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
10 lines
208 B
Rust
10 lines
208 B
Rust
#![crate_type = "lib"]
|
|
|
|
fn example<const N: usize>() {}
|
|
|
|
fn other() {
|
|
example::<[usize; 3]>();
|
|
//~^ ERROR type provided when a const
|
|
example::<[usize; 4+5]>();
|
|
//~^ ERROR type provided when a const
|
|
}
|