mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 09:29:33 +00:00
20 lines
405 B
Rust
20 lines
405 B
Rust
//@ revisions: e2015 e2018
|
|
//
|
|
//@[e2018] edition:2018
|
|
|
|
#![allow(unused)]
|
|
|
|
const A: f16 = 10.0; //~ ERROR the type `f16` is unstable
|
|
|
|
pub fn main() {
|
|
let a: f16 = 100.0; //~ ERROR the type `f16` is unstable
|
|
let b = 0.0f16; //~ ERROR the type `f16` is unstable
|
|
foo(1.23);
|
|
}
|
|
|
|
fn foo(a: f16) {} //~ ERROR the type `f16` is unstable
|
|
|
|
struct Bar {
|
|
a: f16, //~ ERROR the type `f16` is unstable
|
|
}
|