mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
e782d27ec6
Includes related tests and documentation pages. Michael Goulet: Don't issue feature error in resolver for f16/f128 unless finalize Co-authored-by: Michael Goulet <michael@errs.io>
16 lines
350 B
Rust
16 lines
350 B
Rust
#![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
|
|
}
|