This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e30d27be00
rust
/
tests
/
ui
/
const-generics
/
issues
/
issue-60818-struct-constructors.rs
8 lines
88 B
Rust
Raw
Normal View
History
Unescape
Escape
Moving more build-pass tests to check-pass One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-04-19 19:27:28 -05:00
// check-pass
Fix ICE with struct ctors and const generics. This commit fixes a ICE where struct constructors were resulting in an ICE with const generics. Previously, a `match` in `type_of` did not have an arm for the `DefKind::Ctor` resolutions and therefore would assume that the type did not have generics.
2019-05-14 15:34:43 -05:00
struct
Generic
<
const
V
:
usize
>
;
fn
main
(
)
{
let
_
=
Generic
::
<
0
>
;
}
Reference in New Issue
Copy Permalink