@GordonBGood is correct, but I'll explain it in my own words: The conversion from `owned ref T` to `ref T` must produce a temporary location and only this temp is marked with `wasMoved`, in other words its destructor does not run. The `owned ref`'s destructor then still would be run at the end of `addWidget` detecting a now dangling ref. So yes, simply an implementation bug.
- Who owns the widget in this example? Stefan_Salewski
- Re: Who owns the widget in this example? Araq
- Re: Who owns the widget in this example? GordonBGood
- Re: Who owns the widget in this example? GordonBGood
- Re: Who owns the widget in this example? Araq
- Re: Who owns the widget in this exam... GordonBGood
- Re: Who owns the widget in this ... Sixte
- Re: Who owns the widget in t... Araq
- Re: Who owns the widget in t... GordonBGood
- Re: Who owns the widget in t... GordonBGood
- Re: Who owns the widget in t... gemath
- Re: Who owns the widget in t... GordonBGood
- Re: Who owns the widget in t... Araq
- Re: Who owns the widget in t... Sixte
- Re: Who owns the widget in t... GordonBGood
