granite-rust/tests/ui/traits/const-traits/tilde-const-syntax.rs
Nicholas Nethercote 76adf05cfb Rename -Zparse-only.
I was surprised to find that running with `-Zparse-only` only parses the
crate root file. Other files aren't parsed because that happens later
during expansion.

This commit renames the option and updates the help message to make this
clearer.
2024-11-29 06:10:15 +11:00

9 lines
207 B
Rust

//@ compile-flags: -Z parse-crate-root-only
//@ check-pass
#![feature(const_trait_impl)]
struct S<
T: for<'a> ~const Tr<'a> + 'static + ~const std::ops::Add,
T: for<'a: 'b> ~const m::Trait<'a>,
>;