rust/tests/ui/feature-gates/feature-gate-dispatch-from-dyn-cell.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
227 B
Rust
Raw Normal View History

// 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() {}