Skip to content

Commit a2d63d6

Browse files
Add test for #44953
1 parent 63739ab commit a2d63d6

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
//
11+
12+
13+
#![feature(proc_macro)]
14+
#![allow(unused_macros)]
15+
16+
#[macro_use] extern crate log;
17+
18+
pub fn main() {
19+
info!("This is a log message.");
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
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)
2+
--> $DIR/issue-44953.rs:16:14
3+
|
4+
16 | #[macro_use] extern crate log;
5+
| ^^^^^^^^^^^^^^^^^
6+
|
7+
= help: add #![feature(rustc_private)] to the crate attributes to enable
8+
9+
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)
10+
--> $DIR/issue-44953.rs:19:5
11+
|
12+
19 | info!("This is a log message.");
13+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14+
|
15+
= help: add #![feature(rustc_private)] to the crate attributes to enable
16+
= note: this error originates in a macro outside of the current crate (run with -Z external-macro-backtrace for more info)
17+
18+
error: aborting due to 2 previous errors
19+

0 commit comments

Comments
 (0)