Skip to content

Instantly share code, notes, and snippets.

Alex rainbow-alex

Block or report user

Report or block rainbow-alex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3e25419d19a0ed8f7d1a2ade2e117fa0
"functions": [
{
"namespace": "rg",
"members": {
"prefix": {
"parameters": [
{"name": "name", "type": "string"}
],
"output": {
"type": "string",
View vo.php
<?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
compiler failure: 'expected bare rust fn or an intrinsic' (cross-crate pub use of empty struct)
View Output
$ 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
You can’t perform that action at this time.