summaryrefslogtreecommitdiff
path: root/Lifetime specifier.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-05 08:53:21 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-05 08:53:21 +0200
commit295b343aecf330e830d79f06e0efc511e7d76da1 (patch)
tree85057ef1fe401adcd0d958ddf6ff966f25d8fef0 /Lifetime specifier.md
parentf43372529e655f3b039946c969e4465193eb2042 (diff)
vault backup: 2025-08-05 08:53:21
Diffstat (limited to 'Lifetime specifier.md')
-rw-r--r--Lifetime specifier.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lifetime specifier.md b/Lifetime specifier.md
new file mode 100644
index 0000000..b1c5caa
--- /dev/null
+++ b/Lifetime specifier.md
@@ -0,0 +1,3 @@
+[[Borrow checker]]
+
+A flow permission cannot be given if a function signature states that it returns a reference but the function has multiple returns referencing potentially different variables so the borrow checker doesn't know if it's safe or not. \ No newline at end of file