Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
rustdoc
/
intra-doc
/
cross-crate
/
auxiliary
/
traits.rs
blob: c16e39d56f3d0d80dcb2b41e6457270ee18e0d9b [
file
] [
log
] [
blame
]
#![
crate_name
=
"inner"
]
/// this is a trait
pub
trait
SomeTrait
{
/// this is a method for [a trait][SomeTrait]
fn
foo
();
}
pub
mod
bar
{
use
super
::
SomeTrait
;
pub
struct
BarStruct
;
impl
SomeTrait
for
BarStruct
{
fn
foo
()
{}
}
}