mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 21:32:15 +08:00
12 lines
146 B
Rust
Executable File
12 lines
146 B
Rust
Executable File
// ANCHOR: here
|
|
struct MyBox<T>(T);
|
|
|
|
impl<T> MyBox<T> {
|
|
fn new(x: T) -> MyBox<T> {
|
|
MyBox(x)
|
|
}
|
|
}
|
|
// ANCHOR_END: here
|
|
|
|
fn main() {}
|