mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 09:10:34 +00:00
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
15 lines
157 B
Rust
15 lines
157 B
Rust
//@ edition: 2015
|
|
//@ check-pass
|
|
#![allow(dead_code)]
|
|
|
|
pub struct Foo;
|
|
|
|
mod bar {
|
|
use Foo;
|
|
|
|
impl Foo {
|
|
fn baz(&self) {}
|
|
}
|
|
}
|
|
fn main() {}
|