mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
2a1d748254
or inline such functions if useless.
10 lines
229 B
Rust
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() {}
|