lean4-htt/tests/lean/1206.lean
2022-08-29 01:26:12 -07:00

12 lines
248 B
Text

import Bootstrap
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