Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-dispatch-from-dyn-cell.rs
blob: 83366ea02b09a4be662212c0425827ea4497c1d0 [
file
] [
log
] [
blame
]
// 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
()
{}