Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
reachable
/
expr_add.rs
blob: 640c2a2cf8fccdf7abde97bb3e116141fa247b03 [
file
] [
log
] [
blame
]
#![
allow
(
unused_variables
)]
#![
deny
(
unreachable_code
)]
use
std
::
ops
;
struct
Foo
;
impl
ops
::
Add
<!>
for
Foo
{
type
Output
=
!;
fn
add
(
self
,
rhs
:
!)
->
!
{
unimplemented
!()
}
}
fn
main
()
{
let
x
=
Foo
+
return
;
//~ ERROR unreachable
}