From bbdca2c8aded0497c289536ee5ead694ca2d8fc0 Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Wed, 8 Jul 2015 13:42:46 -0700 Subject: Correctly collect defaults from type alises in astconv --- src/test/compile-fail/default_ty_param_type_alias.rs | 17 ----------------- src/test/run-pass/default_ty_param_type_alias.rs | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 src/test/compile-fail/default_ty_param_type_alias.rs create mode 100644 src/test/run-pass/default_ty_param_type_alias.rs (limited to 'src/test') diff --git a/src/test/compile-fail/default_ty_param_type_alias.rs b/src/test/compile-fail/default_ty_param_type_alias.rs deleted file mode 100644 index c3e44e55bee..00000000000 --- a/src/test/compile-fail/default_ty_param_type_alias.rs +++ /dev/null @@ -1,17 +0,0 @@ -// 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 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -use std::collections::HashMap; - -type IntMap = HashMap; - -fn main() { - let x = IntMap::new(); -} 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +use std::collections::HashMap; + +type IntMap = HashMap; + +fn main() { + let x = IntMap::new(); +} -- cgit 1.4.1-3-g733a5