This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust
/
tests
/
ui
/
coercion
/
coerce-block-tail-83850.rs
8 lines
107 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ check-fail
Add tests for autoderef on block tail
2022-10-17 04:03:23 +08:00
fn
f
(
_
:
&
[
i32
]
)
{
}
fn
main
(
)
{
f
(
&
Box
::
new
(
[
1
,
2
]
)
)
;
//~^ ERROR mismatched types
}
Reference in New Issue
Copy Permalink