mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
12 lines
200 B
Rust
12 lines
200 B
Rust
//@ run-pass
|
|
//@ aux-build:explicit_self_xcrate.rs
|
|
|
|
|
|
extern crate explicit_self_xcrate;
|
|
use explicit_self_xcrate::{Foo, Bar};
|
|
|
|
pub fn main() {
|
|
let x = Bar { x: "hello".to_string() };
|
|
x.f();
|
|
}
|