Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
privacy
/
privacy-ufcs.rs
blob: fec7f41340ae99e7fb85b6635ba842268358d1ba [
file
] [
log
] [
blame
]
// Test to ensure private traits are inaccessible with UFCS angle-bracket syntax.
mod
foo
{
trait
Bar
{
fn
baz
()
{}
}
impl
Bar
for
i32
{}
}
fn
main
()
{
<
i32
as
::
foo
::
Bar
>::
baz
();
//~ERROR trait `Bar` is private
}