]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-dispatch-from-dyn-cell.rs
Rollup merge of #107316 - ChrisDenton:snap, r=oli-obk
[rust.git] / tests / ui / feature-gates / feature-gate-dispatch-from-dyn-cell.rs
1 // Check that even though Cell: DispatchFromDyn it remains an invalid self parameter type
2
3 use std::cell::Cell;
4
5 trait Trait{
6     fn cell(self: Cell<&Self>); //~ ERROR invalid `self` parameter type: Cell<&Self>
7 }
8
9 fn main() {}