Quick answer: Unity Burst job using a string literal failing to compile? Strings are managed; Burst rejects - use FixedString or pre-build static strings outside the job.

Job: Debug.Log("value"); Burst error: managed type.

Use FixedString

var msg = new FixedString64Bytes("value");

Burst-compatible string-like type. Bounded size.

Or remove logs from Burst code

Burst is for hot math. Logs belong outside.

Audit string usage in jobs

Each string is a candidate for Burst rejection. Refactor.

“Strings are managed. Burst doesn't compile managed.”

If your Burst job logs, use FixedString. Removing logs entirely is usually the better answer.

Related reading