1
Fork 0
rust/src/test/ui/const-generics/const-param-before-other-params.rs

11 lines
225 B
Rust
Raw Normal View History

2020-02-22 01:56:05 +00:00
#![allow(incomplete_features)]
#![feature(const_generics)]
fn bar<const X: (), 'a>(_: &'a ()) {
//~^ ERROR lifetime parameters must be declared prior to const parameters
}
fn foo<const X: (), T>(_: &T) {}
fn main() {}