diff options
| author | Xavier Shay <xavier@rhnh.net> | 2015-09-26 11:59:00 -0700 |
|---|---|---|
| committer | Xavier Shay <xavier@rhnh.net> | 2015-09-26 11:59:02 -0700 |
| commit | 3885a81e5fa9913075537c9df857fa1753c5d7c1 (patch) | |
| tree | 742e370ac3a37dff4e5b0f6901f334b437594db4 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 9169e6c53c53999d0ca176067a36c57aef84757b (diff) | |
| download | rust-3885a81e5fa9913075537c9df857fa1753c5d7c1.tar.gz rust-3885a81e5fa9913075537c9df857fa1753c5d7c1.zip | |
Add an example of constructing a unit-like struct.
This was non-obvious to me: with no example, I assumed `Electron {}` and
didn't know what else to try when it didn't work. The correct form is
weird because it looks like you're assigning the struct name rather than
an instance of the struct.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
