mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
16 lines
281 B
Rust
16 lines
281 B
Rust
#![feature(generic_const_items)]
|
|
#![allow(incomplete_features)]
|
|
|
|
const NONE<T>: Option<T> = None::<T>;
|
|
const IGNORE<T>: () = ();
|
|
|
|
fn none() {
|
|
let _ = NONE; //~ ERROR type annotations needed
|
|
}
|
|
|
|
fn ignore() {
|
|
let _ = IGNORE; //~ ERROR type annotations needed
|
|
}
|
|
|
|
fn main() {}
|