diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-08-01 04:26:58 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-08-01 04:31:34 +0300 |
| commit | dbc0cd94b94e0c97c4be9ef1cfb1b67431cd51e5 (patch) | |
| tree | 0ca0752e10d72243b6c7dc29f7b326fb77a82241 /src/test | |
| parent | f89817997ac0aa100bf91997194ad85a7e59f743 (diff) | |
rustc_resolve: record single-segment extern crate import resolutions.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/auxiliary/issue-52489.rs | 13 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-52489.rs | 17 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/test/compile-fail/auxiliary/issue-52489.rs b/src/test/compile-fail/auxiliary/issue-52489.rs new file mode 100644 index 00000000000..68d1ef8d776 --- /dev/null +++ b/src/test/compile-fail/auxiliary/issue-52489.rs @@ -0,0 +1,13 @@ +// Copyright 2018 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. + +#![crate_type = "lib"] +#![unstable(feature = "issue_52489_unstable", issue = "0")] +#![feature(staged_api)] diff --git a/src/test/compile-fail/issue-52489.rs b/src/test/compile-fail/issue-52489.rs new file mode 100644 index 00000000000..c43cc12ca02 --- /dev/null +++ b/src/test/compile-fail/issue-52489.rs @@ -0,0 +1,17 @@ +// Copyright 2018 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. + +// edition:2018 +// aux-build:issue-52489.rs + +use issue_52489; +//~^ ERROR use of unstable library feature 'issue_52489_unstable' + +fn main() {} |
