about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorXavier Shay <xavier@rhnh.net>2015-09-26 11:59:00 -0700
committerXavier Shay <xavier@rhnh.net>2015-09-26 11:59:02 -0700
commit3885a81e5fa9913075537c9df857fa1753c5d7c1 (patch)
tree742e370ac3a37dff4e5b0f6901f334b437594db4 /src/rustllvm/ExecutionEngineWrapper.cpp
parent9169e6c53c53999d0ca176067a36c57aef84757b (diff)
downloadrust-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