Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
consts
/
const-type-mismatch.rs
blob: 6e56c046f7ae27601488c8bd0a1bb4c0be9f8f6f [
file
] [
log
] [
blame
]
// `const`s shouldn't suggest `.into()`
const
TEN
:
u8
=
10
;
const
TWELVE
:
u16
=
TEN
+
2
;
//~^ ERROR mismatched types [E0308]
fn
main
()
{
const
TEN
:
u8
=
10
;
const
ALSO_TEN
:
u16
=
TEN
;
//~^ ERROR mismatched types [E0308]
}