This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-05-01 12:37:37 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
2a2c29aafa
rust
/
tests
/
ui
/
structs-enums
/
uninstantiable-struct.rs
5 lines
77 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
2023-12-27 22:11:58 +00:00
pub
struct
Z
(
#[
allow(dead_code)
]
&
'static
Z
)
;
register snapshots
2013-10-23 08:49:18 +00:00
Allow writing types which "can't" be instantiated. The borrow checker doesn't allow constructing such a type at runtime using safe code, but there isn't any reason to ban them in the type checker. Included in this commit is an example of a neat static doubly-linked list. Feature-gated under the static_recursion gate to be on the safe side, but there are unlikely to be any reasons this shouldn't be turned on by default.
2015-06-28 17:38:28 +00:00
pub
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink