Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
mir
/
mir_ascription_coercion.rs
blob: 0ebd20e97d7eff30102f89a8d43150c6c7200b2b [
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
]
=
&
x
:
&[
i32
;
3
];
}