This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"functions": [ | |
{ | |
"namespace": "rg", | |
"members": { | |
"prefix": { | |
"parameters": [ | |
{"name": "name", "type": "string"} | |
], | |
"output": { | |
"type": "string", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class ValueObject | |
{ | |
private $data = []; | |
final public function __construct() | |
{ | |
assert((function () { | |
foreach ((new ReflectionClass(static::class))->getProperties() as $p) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |