mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-01 08:53:29 +00:00

Fixes #137874. Removes `tests/crashes/137874.rs`; the new test is simpler (defines its own macro) but tests the same thing. The changes to the output of `tests/ui/associated-consts/issue-93835.rs` partly undo the changes seen when `NtTy` was removed in #133436, which is good.
13 lines
306 B
Rust
13 lines
306 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 const equality
|
|
}
|
|
|
|
fn main() {}
|