summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-param-before-other-params.rs
blob: 0d787d9a67b590d5ccd052ca8bbe563d80f05ad9 (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {}