File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
branches/snap-stage3/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 1
1
---
2
2
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 2846e033d7eb961a5043a8cf5b8c6f516ba97b90
4
+ refs/heads/snap-stage3: 0a75aefad0e43e129fcba5e6c38fc9bbc620b952
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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