mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
22a5125a36
Most tests involving save-analysis were removed, but I kept a few where the `-Zsave-analysis` was an add-on to the main thing being tested, rather than the main thing being tested. For `x.py install`, the `rust-analysis` target has been removed. For `x.py dist`, the `rust-analysis` target has been kept in a degenerate form: it just produces a single file `reduced.json` indicating that save-analysis has been removed. This is necessary for rustup to keep working. Closes #43606.
21 lines
366 B
Rust
21 lines
366 B
Rust
// [full] check-pass
|
|
// revisions: full min
|
|
|
|
// regression test for #78180
|
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
#![allow(dead_code)]
|
|
|
|
fn test<const N: usize>() {}
|
|
|
|
fn wow<'a>() -> &'a () {
|
|
test::<{
|
|
let _: &'a (); //[min]~ ERROR a non-static lifetime
|
|
3
|
|
}>();
|
|
&()
|
|
}
|
|
|
|
fn main() {}
|