diff options
| author | Virgil Palanciuc <virgil-github@palanciuc.eu> | 2017-10-30 19:52:10 +0200 |
|---|---|---|
| committer | Virgil Palanciuc <virgil-github@palanciuc.eu> | 2017-11-21 22:29:35 +0200 |
| commit | a2d63d65da7de9b1245a19320cd4c5cbf6b4dd73 (patch) | |
| tree | ac5af469fb23154e6327f09f736c38732e27627a /src | |
| parent | 63739ab7b210c1a8c890c2ea5238a3284877daa3 (diff) | |
| download | rust-a2d63d65da7de9b1245a19320cd4c5cbf6b4dd73.tar.gz rust-a2d63d65da7de9b1245a19320cd4c5cbf6b4dd73.zip | |
Add test for #44953
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui-fulldeps/issue-44953/issue-44953.rs | 20 | ||||
| -rw-r--r-- | src/test/ui-fulldeps/issue-44953/issue-44953.stderr | 19 |
2 files changed, 39 insertions, 0 deletions
diff --git a/src/test/ui-fulldeps/issue-44953/issue-44953.rs b/src/test/ui-fulldeps/issue-44953/issue-44953.rs new file mode 100644 index 00000000000..256305bf17d --- /dev/null +++ b/src/test/ui-fulldeps/issue-44953/issue-44953.rs @@ -0,0 +1,20 @@ +// Copyright 2016 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. +// + + +#![feature(proc_macro)] +#![allow(unused_macros)] + +#[macro_use] extern crate log; + +pub fn main() { + info!("This is a log message."); +} diff --git a/src/test/ui-fulldeps/issue-44953/issue-44953.stderr b/src/test/ui-fulldeps/issue-44953/issue-44953.stderr new file mode 100644 index 00000000000..ce17ea79161 --- /dev/null +++ b/src/test/ui-fulldeps/issue-44953/issue-44953.stderr @@ -0,0 +1,19 @@ +error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812) + --> $DIR/issue-44953.rs:16:14 + | +16 | #[macro_use] extern crate log; + | ^^^^^^^^^^^^^^^^^ + | + = help: add #![feature(rustc_private)] to the crate attributes to enable + +error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812) + --> $DIR/issue-44953.rs:19:5 + | +19 | info!("This is a log message."); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: add #![feature(rustc_private)] to the crate attributes to enable + = note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info) + +error: aborting due to 2 previous errors + |
