Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
src
/
test
/
ui
/
issues
/
issue-23080.rs
blob: fdfee6981447df330673cc00b57766fe273a40c2 [
file
] [
log
] [
blame
]
#![
feature
(
optin_builtin_traits
)]
unsafe
auto
trait
Trait
{
//~^ ERROR E0380
fn
method
(&
self
)
{
println
!(
"Hello"
);
}
}
fn
call_method
<
T
:
Trait
>(
x
:
T
)
{
x
.
method
();
}
fn
main
()
{
// ICE
call_method
(());
}