mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-27 06:52:01 +00:00
9 lines
232 B
Rust
9 lines
232 B
Rust
//@ build-pass
|
|
|
|
// Regression test for an overly aggressive assertion in #130855.
|
|
|
|
fn main() {
|
|
let subtype: &(dyn for<'a> Fn(&'a i32) -> &'a i32) = &|x| x;
|
|
let supertype: &(dyn Fn(&'static i32) -> &'static i32) = subtype;
|
|
}
|