blob: eea6a21ce274c7da1bb7fe3b9eaad234a71112a9 (
plain)
1
2
3
4
5
6
7
8
9
|
// Check that even though Cell: DispatchFromDyn it remains an invalid self parameter type
use std::cell::Cell;
trait Trait{
fn cell(self: Cell<&Self>); //~ ERROR invalid `self` parameter type: `Cell<&Self>`
}
fn main() {}
|