2022-10-26 07:40:03 -05:00
|
|
|
// Check that even though Cell: DispatchFromDyn it remains an invalid self parameter type
|
|
|
|
|
|
|
|
use std::cell::Cell;
|
|
|
|
|
|
|
|
trait Trait{
|
2024-04-24 20:11:19 -05:00
|
|
|
fn cell(self: Cell<&Self>); //~ ERROR invalid `self` parameter type: `Cell<&Self>`
|
2022-10-26 07:40:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|