Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIt is not possible to assign a Duration to a const variable #18166
Comments
This comment has been minimized.
This comment has been minimized.
|
There's a legit |
This comment has been minimized.
This comment has been minimized.
|
Can this wait for Compile Time Function Evaluation to be implemented properly? It seems like that would be the correct solution to this problem (unless having the fields public is otherwise desirable). |
1-more
added a commit
to 1-more/rust
that referenced
this issue
Nov 3, 2014
1-more
referenced this issue
Nov 11, 2014
Closed
Duration: methods to extract non-integral content #18855
steveklabnik
added
the
A-libs
label
Jan 27, 2015
This comment has been minimized.
This comment has been minimized.
|
This is still true today. |
This comment has been minimized.
This comment has been minimized.
|
Sample program:
This is basically always going to be true until |
steveklabnik
closed this
Oct 27, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
carllerche commentedOct 19, 2014
The struct fields are currently not pub making it impossible to assign Duration to a const variable.
Given that Duration is essentially
timespec, it seems like it might be a good idea to make the struct fields public.cc @aturon