rust/tests/ui/issues/issue-12729.rs
Lukas Wirth 49969468b5 Add missing 2015 edition directives
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-03 11:45:58 +02:00

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() {}