2016-09-14 21:51:46 +00:00
|
|
|
#![allow(unused)]
|
2016-03-06 12:54:44 +00:00
|
|
|
|
|
|
|
struct S;
|
|
|
|
struct Z;
|
2016-03-20 00:04:12 +00:00
|
|
|
|
|
|
|
mod foo {
|
2017-11-19 14:05:29 +00:00
|
|
|
use ::super::{S, Z}; //~ ERROR global paths cannot start with `super`
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR global paths cannot start with `super`
|
2016-03-06 12:54:44 +00:00
|
|
|
|
2016-03-20 00:04:12 +00:00
|
|
|
pub fn g() {
|
2017-11-19 14:05:29 +00:00
|
|
|
use ::super::main; //~ ERROR global paths cannot start with `super`
|
2022-04-10 14:21:58 +00:00
|
|
|
main();
|
2016-03-20 00:04:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-14 21:51:46 +00:00
|
|
|
fn main() { foo::g(); }
|