Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
tests
/
ui
/
mir
/
mir_ascription_coercion.rs
blob: b36a2c385d0f6e31c169e5d7f311423f4dc56bdd [
file
] [
log
] [
blame
]
//@ run-pass
// Tests that the result of type ascription has adjustments applied
#![
feature
(
type_ascription
)]
fn
main
()
{
let
x
=
[
1
,
2
,
3
];
// The RHS should coerce to &[i32]
let
_y
:
&[
i32
]
=
type_ascribe
!(&
x
,
&[
i32
;
3
]);
}