Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch15-smart-pointers
/
listing-15-08
/
src
/
main.rs
blob: f48594673108aa4abd62dd4d0ddb5bd337824cbb [
file
] [
log
] [
blame
]
// ANCHOR: here
struct
MyBox
<
T
>(
T
);
impl
<
T
>
MyBox
<
T
>
{
fn
new
(
x
:
T
)
->
MyBox
<
T
>
{
MyBox
(
x
)
}
}
// ANCHOR_END: here
fn
main
()
{}