mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
9a7b176227
Reproduce the bug from <https://github.com/rust-lang/rust/issues/123282> that indicates this feature gate hits edition-dependent resolution paths. Resolution changed in edition 2018, so test that as well.
20 lines
415 B
Rust
20 lines
415 B
Rust
//@ revisions: e2015 e2018
|
|
//
|
|
//@[e2018] edition:2018
|
|
|
|
#![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
|
|
}
|