use defining uses of all bodies to constrain non-defining uses

support non-defining uses in closures
This commit is contained in:
lcnr
2025-09-01 22:03:21 +02:00
parent a3993c5416
commit b8160e9f38
17 changed files with 519 additions and 233 deletions

View File

@@ -46,7 +46,7 @@
//! Frozen::freeze(new_bar)`).
/// An owned immutable value.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Frozen<T>(T);
impl<T> Frozen<T> {