summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs')
-rw-r--r--src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs b/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs
index 2c8a700bc..dd0320bc5 100644
--- a/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs
+++ b/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs
@@ -17,7 +17,6 @@ async fn buy_lock(generator: &Mutex<MarketMultiplier>) -> LockedMarket<'_> {
//~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
//~^^ ERROR this struct takes 1 generic argument but 0 generic arguments were supplied
LockedMarket(generator.lock().unwrap().buy())
- //~^ ERROR cannot return value referencing temporary
}
struct LockedMarket<T>(T);