rust/src/test/ui/ret-none.rs
2019-07-27 18:56:16 +03:00

14 lines
217 B
Rust

// run-pass
#![allow(non_camel_case_types)]
#![allow(dead_code)]
// pretty-expanded FIXME #23616
enum option<T> { none, some(T), }
fn f<T>() -> option<T> { return option::none; }
pub fn main() { f::<isize>(); }