mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
20 lines
308 B
Rust
20 lines
308 B
Rust
//@ edition: 2021
|
|
|
|
// issue#128813
|
|
|
|
extern crate non_existent;
|
|
//~^ ERROR: can't find crate for `non_existent`
|
|
|
|
macro_rules! m {
|
|
() => {
|
|
extern crate std as non_existent;
|
|
//~^ ERROR: the name `non_existent` is defined multiple times
|
|
};
|
|
}
|
|
|
|
m!();
|
|
|
|
fn main() {
|
|
use ::non_existent;
|
|
}
|