lean4-htt/tests/lean/1206.lean
2022-06-10 17:31:36 +02:00

12 lines
242 B
Text

import Std
set_option linter.unusedVariables true
open Std
def boo : Id (HashSet Nat) := do
let mut vs : HashSet Nat := HashSet.empty
for i in List.range 10 do
/- unused variable `vs` -/
(_, vs) := (i, vs.insert i)
return vs