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