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