mirror of https://github.com/rust-lang/rust
12 lines
475 B
Rust
12 lines
475 B
Rust
#![allow(unused)]
|
|
fn first<T, 'a, 'b>() {}
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
|
fn second<'a, T, 'b>() {}
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
|
fn third<T, U, 'a>() {}
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
|
fn fourth<'a, T, 'b, U, 'c, V>() {}
|
|
//~^ ERROR lifetime parameters must be declared prior to type and const parameters
|
|
|
|
fn main() {}
|