2019-02-05 10:55:25 -06:00
|
|
|
#![feature(const_generics)]
|
|
|
|
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
|
|
|
|
|
2019-02-19 19:20:22 -06:00
|
|
|
fn foo<const X: (), T>(_: &T) {
|
2019-02-05 10:55:25 -06:00
|
|
|
//~^ ERROR type parameters must be declared prior to const parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar<const X: (), 'a>(_: &'a ()) {
|
|
|
|
//~^ ERROR lifetime parameters must be declared prior to const parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|