File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -810,23 +810,23 @@ impl Vid for TyVid {
810810}
811811
812812impl ToStr for TyVid {
813- fn to_str ( & self ) -> ~str { format ! ( "<V {}>" , self . to_uint( ) ) }
813+ fn to_str ( & self ) -> ~str { format ! ( "<generic \\ # {}>" , self . to_uint( ) ) }
814814}
815815
816816impl Vid for IntVid {
817817 fn to_uint ( & self ) -> uint { let IntVid ( v) = * self ; v }
818818}
819819
820820impl ToStr for IntVid {
821- fn to_str ( & self ) -> ~str { format ! ( "<VI {}>" , self . to_uint( ) ) }
821+ fn to_str ( & self ) -> ~str { format ! ( "<generic integer \\ # {}>" , self . to_uint( ) ) }
822822}
823823
824824impl Vid for FloatVid {
825825 fn to_uint ( & self ) -> uint { let FloatVid ( v) = * self ; v }
826826}
827827
828828impl ToStr for FloatVid {
829- fn to_str ( & self ) -> ~str { format ! ( "<VF {}>" , self . to_uint( ) ) }
829+ fn to_str ( & self ) -> ~str { format ! ( "<generic float \\ # {}>" , self . to_uint( ) ) }
830830}
831831
832832impl Vid for RegionVid {
Original file line number Diff line number Diff line change 1010
1111fn main ( ) {
1212 match None {
13- Err ( _) => ( ) //~ ERROR mismatched types: expected `std::option::Option<<V1 >>` but found `std::result::Result<<V2 >,<V3 >>`
13+ Err ( _) => ( ) //~ ERROR mismatched types: expected `std::option::Option<<generic #1 >>` but found `std::result::Result<<generic #2 >,<generic #3 >>`
1414 }
1515}
Original file line number Diff line number Diff line change 1212
1313static A : ( int , int ) = ( 4 , 2 ) ;
1414fn main ( ) {
15- match 42 { A => ( ) } //~ ERROR mismatched types: expected `<VI0 >` but found `(int,int)` (expected integral variable but found tuple)
15+ match 42 { A => ( ) } //~ ERROR mismatched types: expected `<generic integer #0 >` but found `(int,int)` (expected integral variable but found tuple)
1616}
Original file line number Diff line number Diff line change 1+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+ // file at the top-level directory of this distribution and at
3+ // http://rust-lang.org/COPYRIGHT.
4+ //
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+ // option. This file may not be copied, modified, or distributed
9+ // except according to those terms.
10+
11+ struct Foo < T , U > ( T ) ;
12+
13+ fn main ( ) {
14+ match Foo ( 1.1 ) {
15+ 1 => { }
16+ //~^ ERROR expected `Foo<<generic float #0>,<generic #2>>` but found `<generic integer #0>`
17+ }
18+
19+ }
You can’t perform that action at this time.
0 commit comments