about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorJared Roesch <roeschinc@gmail.com>2015-07-08 13:42:46 -0700
committerJared Roesch <jroesch@MacBook.home>2015-07-25 19:57:57 -0700
commitbbdca2c8aded0497c289536ee5ead694ca2d8fc0 (patch)
tree27bdbe9e7c85b9d9983fbe14171dec8b1850a9d7 /src/test/run-pass
parent91de8e6c281fafd257e52def26551b2b722aaddb (diff)
downloadrust-bbdca2c8aded0497c289536ee5ead694ca2d8fc0.tar.gz
rust-bbdca2c8aded0497c289536ee5ead694ca2d8fc0.zip
Correctly collect defaults from type alises in astconv
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/default_ty_param_type_alias.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/run-pass/default_ty_param_type_alias.rs b/src/test/run-pass/default_ty_param_type_alias.rs
new file mode 100644
index 00000000000..c3e44e55bee
--- /dev/null
+++ b/src/test/run-pass/default_ty_param_type_alias.rs
@@ -0,0 +1,17 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+use std::collections::HashMap;
+
+type IntMap<K=usize> = HashMap<K, usize>;
+
+fn main() {
+    let x = IntMap::new();
+}