10 lines
356 B
Text
10 lines
356 B
Text
Error: Type Mismatch
|
|
╭─[assignment-rc-tuple-option-rc.txt:2:9]
|
|
│
|
|
1 │ let foo: Rc<(Option<bool>,)> = Rc((None,));
|
|
· ───┬──
|
|
· ╰──── Expected type `Option<bool>`,
|
|
2 │ foo.0 = Rc(true);
|
|
· ─┬
|
|
· ╰── but expression is of type `Rc<_>`
|
|
───╯
|