use BTreeMap for region constraints

This commit is contained in:
Cengiz Can 2017-11-07 21:29:28 +00:00 committed by Cengiz Can
parent ee839b36ac
commit 501c558ffe
4 changed files with 14 additions and 12 deletions

View file

@ -60,8 +60,8 @@ fn baz<'a,'b>(x: Type<'a>) -> Type<'static> {
#[cfg(krisskross)] // two instantiations, mixing and matching: BAD
fn transmute<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
let a = bar(foo, y);
let b = bar(foo, x); //[krisskross]~ ERROR E0623
let a = bar(foo, y); //[krisskross]~ ERROR E0623
let b = bar(foo, x);
(a, b) //[krisskross]~ ERROR E0623
}