]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / rfc-1937-termination-trait / termination-trait-test-wrong-type.rs
1 // compile-flags: --test
2
3 use std::num::ParseFloatError;
4
5 #[test]
6 fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> { //~ ERROR
7 "0".parse()
8 }