Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//@ check-pass
//@ edition:2021

// Regression test for https://github.com/rust-lang/rust/issues/129865.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment for pointing the issue as said in #149421 (comment)

pub async fn cleanse_old_array_async(_: &[u8; BUCKET_LEN]) {}

pub const BUCKET_LEN: usize = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//@ ignore-compare-mode-next-solver
//@ compile-flags: -Znext-solver
//@ check-pass

// Make sure that we support non-defining uses in borrowck.
// Regression test for https://github.com/rust-lang/rust/issues/145748.

pub fn f(_: &()) -> impl Fn() + '_ {
|| {
let _ = f(&());
}
}

fn main() {}
Loading