auto merge of #17028 : pcwalton/rust/higher-rank-trait-lifetimes, r=pnkfelix
They will ICE during typechecking if used, because they depend on trait reform. This is part of unboxed closures. r? @nikomatsakis
This commit is contained in:
commit
d80cd3d9bc
10 changed files with 128 additions and 10 deletions
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct Foo<'a, 'a> { //~ ERROR lifetime name `'a` declared twice
|
||||
//~^ ERROR lifetime name `'a` declared twice
|
||||
x: &'a int
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct Foo<'static> { //~ ERROR illegal lifetime parameter name: `'static`
|
||||
//~^ ERROR illegal lifetime parameter name: `'static`
|
||||
x: &'static int
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue