Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust-analyzer
/
a271dac5787587e2fa347549e99a41bca79ea6ab
/
.
/
crates
/
hir-ty
/
src
/
tests
/
trait_aliases.rs
blob: 302ce550b8534b0d8989b80de2f77ba1c5d51c28 [
file
] [
log
] [
blame
]
use
crate
::
tests
::
check_types
;
#[
test
]
fn
projection
()
{
check_types
(
r
#
"
#![
feature
(
trait_alias
)]
pub
trait
A
{
type
Output
;
}
pub
trait
B
=
A
<
Output
=
u32
>;
pub
fn
a
<
T
:
B
>(
x
:
T
::
Output
)
{
x
;
// ^ u32
}
"#,
);
}