2021-08-27 18:04:57 +02:00
|
|
|
fn bar<const X: u8, 'a>(_: &'a ()) {
|
2022-09-09 14:28:57 +02:00
|
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
2019-02-05 17:55:25 +01:00
|
|
|
}
|
|
|
|
|
2021-08-27 18:04:57 +02:00
|
|
|
fn foo<const X: u8, T>(_: &T) {}
|
2019-05-04 14:38:10 +01:00
|
|
|
|
2019-02-05 17:55:25 +01:00
|
|
|
fn main() {}
|