2020-02-22 01:56:05 +00:00
|
|
|
#![allow(incomplete_features)]
|
2019-02-05 17:55:25 +01:00
|
|
|
#![feature(const_generics)]
|
|
|
|
|
|
|
|
fn bar<const X: (), 'a>(_: &'a ()) {
|
|
|
|
//~^ ERROR lifetime parameters must be declared prior to const parameters
|
|
|
|
}
|
|
|
|
|
2020-07-30 18:39:53 +00:00
|
|
|
fn foo<const X: (), T>(_: &T) {}
|
2019-05-04 14:38:10 +01:00
|
|
|
|
2019-02-05 17:55:25 +01:00
|
|
|
fn main() {}
|