2024-03-31 19:23:57 -05:00
|
|
|
//@ revisions: e2015 e2018
|
|
|
|
//
|
|
|
|
//@[e2018] edition:2018
|
|
|
|
|
2024-03-02 20:45:23 -06:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
const A: f128 = 10.0; //~ ERROR the type `f128` is unstable
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let a: f128 = 100.0; //~ ERROR the type `f128` is unstable
|
|
|
|
let b = 0.0f128; //~ ERROR the type `f128` is unstable
|
|
|
|
foo(1.23);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: f128) {} //~ ERROR the type `f128` is unstable
|
|
|
|
|
|
|
|
struct Bar {
|
|
|
|
a: f128, //~ ERROR the type `f128` is unstable
|
|
|
|
}
|