Skip to content

Instantly share code, notes, and snippets.

View rainbow-alex's full-sized avatar

Alex rainbow-alex

View GitHub Profile
"functions": [
{
"namespace": "rg",
"members": {
"prefix": {
"parameters": [
{"name": "name", "type": "string"}
],
"output": {
"type": "string",
<?php
abstract class ValueObject
{
private $data = [];
final public function __construct()
{
assert((function () {
foreach ((new ReflectionClass(static::class))->getProperties() as $p) {
@rainbow-alex
rainbow-alex / Output
Created May 5, 2014 21:27
compiler failure: 'expected bare rust fn or an intrinsic' (cross-crate pub use of empty struct)
$ rustc libfoo.rs
$ RUST_BACKTRACE=1 rustc -L . foo.rs
foo.rs:4:2: 4:11 warning: path statement with no effect, #[warn(path_statement)] on by default
foo.rs:4 foo::Bar;
^~~~~~~~~
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'expected bare rust fn or an intrinsic', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:1720