2014-10-27 22:37:07 +00:00
|
|
|
#![deny(unused_qualifications)]
|
2019-08-11 16:55:14 +00:00
|
|
|
#![allow(deprecated)]
|
2013-07-11 03:54:06 +00:00
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub fn bar() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
use foo::bar;
|
|
|
|
foo::bar(); //~ ERROR: unnecessary qualification
|
2015-12-12 03:30:53 +00:00
|
|
|
bar();
|
2016-10-22 22:08:08 +00:00
|
|
|
|
2019-07-14 08:16:46 +00:00
|
|
|
let _ = || -> Result<(), ()> { try!(Ok(())); Ok(()) }; // issue #37345
|
2016-10-22 22:08:08 +00:00
|
|
|
|
2017-01-03 02:47:18 +00:00
|
|
|
macro_rules! m { () => {
|
|
|
|
$crate::foo::bar(); // issue #37357
|
|
|
|
::foo::bar(); // issue #38682
|
|
|
|
} }
|
|
|
|
m!();
|
2013-07-11 03:54:06 +00:00
|
|
|
}
|