rust/tests/ui/feature-gates/feature-gate-dispatch-from-dyn-cell.rs
León Orell Valerian Liehr 2a1d748254
Replace item names containing an error code with something more meaningful
or inline such functions if useless.
2024-04-30 22:27:19 +02:00

10 lines
229 B
Rust

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