2016-03-20 03:04:12 +03:00
|
|
|
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
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-04 23:56:45 +03:00
|
|
|
use ::super::{S, Z}; //~ ERROR unresolved import `super`
|
2016-03-06 15:54:44 +03:00
|
|
|
|
2016-03-20 03:04:12 +03:00
|
|
|
pub fn g() {
|
2017-11-04 23:56:45 +03:00
|
|
|
use ::super::main; //~ ERROR unresolved import `super`
|
2016-03-20 03:04:12 +03:00
|
|
|
main();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-15 00:51:46 +03:00
|
|
|
fn main() { foo::g(); }
|