mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
22 lines
400 B
Rust
22 lines
400 B
Rust
// run-rustfix
|
|
#![deny(unused_qualifications)]
|
|
#![allow(deprecated)]
|
|
|
|
mod foo {
|
|
pub fn bar() {}
|
|
}
|
|
|
|
fn main() {
|
|
use foo::bar;
|
|
bar(); //~ ERROR: unnecessary qualification
|
|
bar();
|
|
|
|
let _ = || -> Result<(), ()> { try!(Ok(())); Ok(()) }; // issue #37345
|
|
|
|
macro_rules! m { () => {
|
|
$crate::foo::bar(); // issue #37357
|
|
::foo::bar(); // issue #38682
|
|
} }
|
|
m!();
|
|
}
|