]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-14303.rs
2 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
6 struct Struct
<'a
, T
, 'b
> {
7 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
11 trait Trait
<'a
, T
, 'b
> {}
12 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
14 fn foo
<'a
, T
, 'b
>(x
: &'a T
) {}
15 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
18 impl<'a
, T
, 'b
> Y
<T
> {}
19 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
22 pub struct X
<'a
, 'b
, 'c
, T
> {
30 fn bar
<'a
, 'b
, 'c
, T
>(x
: bar
::X
<'a
, T
, 'b
, 'c
>) {}
31 //~^ ERROR type provided when a lifetime was expected