mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
303 B
Rust
13 lines
303 B
Rust
#![feature(type_ascription)]
|
|
|
|
fn e() {
|
|
type_ascribe!(p, a<p:p<e=6>>);
|
|
//~^ ERROR cannot find type `a` in this scope
|
|
//~| ERROR cannot find value
|
|
//~| ERROR associated const equality
|
|
//~| ERROR cannot find trait `p` in this scope
|
|
//~| ERROR associated type bounds
|
|
}
|
|
|
|
fn main() {}
|