Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
typeck
/
typeck-negative-impls-builtin.rs
blob: 7bdd1035a1bf2575f6406d6cc710bb0f8929f227 [
file
] [
log
] [
blame
]
#![
feature
(
optin_builtin_traits
)]
struct
TestType
;
trait
TestTrait
{
fn
dummy
(&
self
)
{
}
}
impl
!
TestTrait
for
TestType
{}
//~^ ERROR negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
fn
main
()
{}