File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
branches/try/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 2846e033d7eb961a5043a8cf5b8c6f516ba97b90
5
+ refs/heads/try: 0a75aefad0e43e129fcba5e6c38fc9bbc620b952
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- extern mod std;
12
- use std:: map;
13
- use std:: map:: HashMap ;
14
- use std:: map:: StdMap ;
11
+ use core:: container:: Map ;
12
+ use core:: hashmap:: linear:: LinearMap ;
15
13
16
14
// Test that trait types printed in error msgs include the type arguments.
17
15
18
16
fn main ( ) {
19
- let x: StdMap < ~str , ~str > = map :: HashMap :: < ~str , ~str > ( ) as
20
- StdMap :: < ~str , ~str > ;
21
- let y: StdMap < uint , ~str > = x;
22
- //~^ ERROR mismatched types: expected `@std::map::StdMap <uint,~str>`
17
+ let x: Map < ~str , ~str > = LinearMap :: new :: < ~str , ~str > ( ) as
18
+ Map :: < ~str , ~str > ;
19
+ let y: Map < uint , ~str > = x;
20
+ //~^ ERROR mismatched types: expected `@core::container::Map/& <uint,~str>`
23
21
}
You can’t perform that action at this time.
0 commit comments